Activate Door Trigger

Post » Wed Jun 20, 2012 10:40 am

I've been trying to get a "door open, door close" type script to work but the wiki is rather hard to understand for those of us less knowledgeable in Papyrus.

The instructions (http://www.creationkit.com/ObjectReference.Activate_%28Papyrus%29) mention a line "NeatDoor.Activate(Game.GetPlayer())" and do not say what "neatdoor" is and this is where compile fails.

Is it the editor ID or the name of the door. Both of which I've tried but it didn't work.

Here's the script that I've been working on:

Scriptname AntreActivateDoor01 extends ObjectReferenceEvent OnTriggerEnter(ObjectReference akActionRef)	NeatDoor.Activate(Game.GetPlayer())EndEvent

What I am looking to do is have the trigger open the door and then close it as fast as possible.... think haunted house :smile:

Thanks for any and all help!
User avatar
Sanctum
 
Posts: 3524
Joined: Sun Aug 20, 2006 8:29 am

Post » Wed Jun 20, 2012 3:05 pm

You need to make a property for the door, in this case it would be:
ObjectReference property NeatDoor auto
And fill it with the door reference you want to activate in the window where you attach the script:
http://www.creationkit.com/images/5/58/ReferenceScriptPropertyEx.jpg
User avatar
{Richies Mommy}
 
Posts: 3398
Joined: Wed Jun 21, 2006 2:40 pm


Return to V - Skyrim