enderalse/source/scripts/_00e_noteleporttriggerboxscript.psc

19 lines
490 B
Plaintext

Scriptname _00E_NoTeleportTriggerboxScript extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && (_00E_TeleportGlobal.GetValueInt() == 0)
_00E_TeleportGlobal.SetValueInt(1)
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer() && (_00E_TeleportGlobal.GetValueInt() == 1)
_00E_TeleportGlobal.SetValueInt(0)
EndIf
EndEvent
GlobalVariable Property _00E_TeleportGlobal Auto