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