Folks, race is over. Here ya go, Max...
Make sure that the door has a Reference Editor ID, in this case it is "SmallShackPlayerDoor1".
Then make a new script, and make sure it's an Object script. Make sure you replace the "SmallShackPlayerDoor1" in the script below to whatever the reference editor ID you selected is.
Attach this script to the door:
So you can manually lock the door yourself after you have exited, or wait 3 seconds and it will lock itself...Quote:
Scn zLockingDoorsAuto
float doorTimer
Begin GameMode
if doorTimer < 3
set doorTimer to doorTimer + getSecondsPassed
else
SmallShackPlayerDoor1.Lock 255
set doorTimer to 0
endif
end
Begin OnActivate
if SmallShackPlayerDoor1.GetLocked == 0 ; if the door is unlocked
Lock 255
else
Activate
Set doorTimer to 0
endif
End
;D
ETA - I also think I know how to do the rental thing, but it'll take some time to do. The script itself will give me problems, so it'll be mostly trial and error. But, I know how I need to do it. I'll work on that once I get the next round of updates on our mod done...