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

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