Creating a spell to unlock chests Help plz

Post » Tue Jun 26, 2012 2:51 pm

Hey everyone, im trying to create some new alteration spells that will open chests when a spell is casted upon it ( Just like Oblivions open lock spells ). I already created the spells and spell tomes etc etc, but i need some help with the papyrus script. Im pretty sure my starting point should be the Papyrus script entitled "PRKF_doomTowerPerk_000E7326.pcs" .. Can anyone give me some examples of how to do this? All help is much appreciated!

Also, i do udnerstand there is a mod out there that acheive's this, but i would like to learn how to do this on my own :wink:

EDIT: Am i on the right track here?

Scriptname _My_OpenLocks Extends Perk HiddenFunction OpenLock(ObjectReference akTargetRef, Actor akActor)akTargetRef.lock(FALSE)akTargetRef.activate(game.getPlayer())EndFunction
User avatar
Matt Bigelow
 
Posts: 3350
Joined: Sun Sep 30, 2007 6:36 pm

Return to V - Skyrim