2021-10-05 22:15:58 +00:00
|
|
|
Scriptname _00E_LightSwitchSecondaryScript extends ObjectReference
|
|
|
|
|
|
|
|
Actor Property PlayerRef Auto
|
2021-10-05 22:46:41 +00:00
|
|
|
Keyword Property LinkKeyword Auto
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
if akActionRef == PlayerRef
|
2021-10-05 22:46:41 +00:00
|
|
|
(GetLinkedRef(LinkKeyword) as _00E_LightSwitchMainScript).TurnSwitchOn()
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
if akActioNRef == PlayerRef
|
2021-10-05 22:46:41 +00:00
|
|
|
(GetLinkedRef(LinkKeyword) as _00E_LightSwitchMainScript).TurnSwitchOff()
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
|