enderalse/source/scripts/_00e_lightswitchtertiaryscript.psc

18 lines
477 B
Plaintext
Raw Normal View History

2021-10-05 22:46:41 +00:00
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