17 lines
422 B
Plaintext
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
|
||
|
|