enderalse/source/scripts/_00e_lightswitchtertiaryscript.psc

18 lines
477 B
Plaintext

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