falloutperson416 Posted April 3, 2011 Share Posted April 3, 2011 Can someone give me the automatic door script? I normally take pictures of my Scripts, but I forgot this one. If someone has it on them, please give it to me :) Link to comment Share on other sites More sharing options...
RealmEleven Posted April 5, 2011 Share Posted April 5, 2011 This is my own auto-close script (which is probably a reinvention of the wheel). I tend to think it better to let the player decide whether or not to open a door unless the door is part of a long run or series of regularly accessed doors. I've set it up to close automatically after a given time frame - which you can adjust from just one line. It is written in the context of not being a novelty - so no bleeping beeping noises: scn zyzzSlAutoClose07 ; automatically closes after 7 sec delay Float T ; for Timer Short D ; for Done Begin OnActivate Activate Set T to 7 Set D to 1 End Begin GameMode If D == 1 If GetOpenState == 1 If T <= 0 Activate Set D to 0 EndIf Set T to T - getSecondsPassed EndIf EndIf End For an auto door, you will need to place a trigger zone and link the trigger zone to the door under the activate parents tab. The auto-close will take care of the rest - although you may prefer to set a script o the trigger zone that activates the door on entry and separately on exiting the trigger zone. I vaguely remember doing something like this on an Oblivion mod... I hope this helps... Link to comment Share on other sites More sharing options...
falloutperson416 Posted April 6, 2011 Author Share Posted April 6, 2011 Thanks :) I've used the auto door script before, but I forgot to take a picture of it to remember its details :/ Anyway, thanks so much! Link to comment Share on other sites More sharing options...
Recommended Posts