reidmodz/automatisches-T-ren-schlie-en
Quellcode 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Scn AutomatischeSchliessungVonTürenSript float doorTimer short closeDoor Begin GameMode if closeDoor == 1 if doorTimer > 0 set doorTimer to doorTimer - getSecondsPassed else Activate set closeDoor to 0 endif endif End Begin OnActivate Activate if IsActionRef Player == 0 set doorTimer to 5 set closeDoor to 1 endif end