ScreaminSkullsTeam Posted February 4, 2009 Share Posted February 4, 2009 Hi, Im in need of a Script for Doors auto close after a set time anyone care to help (Will get credit when mod released) Thanks to all that read and reply Mr. EvansScreamin' Skulls Team (SST) - The Founder Link to comment Share on other sites More sharing options...
SpeedyB64 Posted February 5, 2009 Share Posted February 5, 2009 I can help you there :thumbsup: I made a script like that for another of my mods. I will post it here when I get home. Link to comment Share on other sites More sharing options...
ScreaminSkullsTeam Posted February 5, 2009 Author Share Posted February 5, 2009 Thanks Link to comment Share on other sites More sharing options...
SpeedyB64 Posted February 5, 2009 Share Posted February 5, 2009 Here you go! Script type: Object Scriptname AutoClosingDoor float doorTimer short closeDoor Begin GameMode if closeDoor == 1 if doorTimer > 0 set doorTimer to doorTimer - getSecondsPassed else ;close the door Activate ; Lock set closeDoor to 0 endif endif End Begin OnActivate Activate if IsActionRef Player == 0 ;if it only works for NPCs remove this ..... set doorTimer to 5 set closeDoor to 1 endif ;...and this End This should work. Link to comment Share on other sites More sharing options...
ScreaminSkullsTeam Posted February 6, 2009 Author Share Posted February 6, 2009 ok, ill cheak it out and let you know. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.