Posted by The TechMentor in Fallout New Vegas, Game Modding, Scripts
on Aug 8th, 2015 | Comments Off on Script: Auto Close Door ScriptNname AutoClosingDoor01
float doorTimer
short closeDoor
Begin GameMode
if closeDoor == 1
if doorTimer > 0
set doorTimer to doorTimer - getSecondsPassed
elseif GetOpenState == 1 ; if the door is still open
SetOpenState 0 ; close the door
set closeDoor to 0
endif
endif
End
Begin OnActivate
if GetOpenState == 3 ; if the door is closed
set doorTimer to 5
set closeDoor to 1
endif
Activate
End