18 lines
478 B
Plaintext
18 lines
478 B
Plaintext
Scriptname _00E_LightSwitchSecondaryScript 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
|
|
|