enderalse/scripts/source/_00e_lightswitchsecondaryscript.psc

17 lines
422 B
Plaintext

Scriptname _00E_LightSwitchSecondaryScript extends ObjectReference
Actor Property PlayerRef Auto
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerRef
(GetLinkedRef() as _00E_LightSwitchMainScript).TurnSwitchOn()
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActioNRef == PlayerRef
(GetLinkedRef() as _00E_LightSwitchMainScript).TurnSwitchOff()
EndIf
EndEvent