4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
490 B

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