enderalse/source/scripts/_00e_mq11c_oorbayasafezonescript.psc

22 lines
474 B
Plaintext

Scriptname _00E_MQ11c_OorbayaSafezoneScript extends ObjectReference
{Sets a global to one once the player has entered the trigger
}
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer()
_00E_MQ11c_PlayerIsSafe.SetValueInt(1)
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == Game.GetPlayer()
_00E_MQ11c_PlayerIsSafe.SetValueInt(0)
EndIf
EndEvent
GlobalVariable Property _00E_MQ11c_PlayerIsSafe Auto