DavideMitra Posted December 28, 2012 Share Posted December 28, 2012 Hi! In the internet I found a script that relocks a door after a second. I tried it on an already existing door, and it worked perfectly (it was a Leyawiin interior medium door).I created a custom door (it is the same of the other door, but it has a different name.."main house door"), I tried the script on this door, but it doesn't work..what's wrong?..thanks for the help! Oh..I was forgetting xD..This is the script, it doesn't have any reference, because you have to apply it where you want. So, this isn't a reference problem... scriptname MyDoorAutoCloseScriptfloat timershort doWhat Begin GameMode if getopenstate != 1 if timer > 0 set timer to timer - getsecondspassed else if doWhat == 0 set timer to 5 set doWhat to 1 elseif doWhat == 1 setopenstate 0 set timer to 3 set doWhat to 2 elseif doWhat == 2 lock 100 set doWhat to 0 endif endif endifEnd Link to comment Share on other sites More sharing options...
Recommended Posts