41 lines
747 B
Plaintext
41 lines
747 B
Plaintext
Scriptname _00E_MQP02_CombatfailsafeSC extends ObjectReference
|
|
|
|
Event OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
if (akActionRef == MQP02_SiriusREF)
|
|
|
|
bSiriusOut = True
|
|
|
|
If bPlayerOut && bSiriusOut
|
|
; MQP02.EnableCombatNavcut()
|
|
EndIf
|
|
EndIf
|
|
|
|
if (akActionRef == PlayerREF)
|
|
|
|
bPlayerOut = True
|
|
|
|
If bPlayerOut && bSiriusOut
|
|
MQP02.EnableCombatNavcut()
|
|
EndIf
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
if (akActionRef == MQP02_SiriusREF)
|
|
bSiriusOut = False
|
|
ElseIf (akActionRef == PlayerREF)
|
|
bPlayerOut = False
|
|
EndIf
|
|
|
|
EndEvent
|
|
|
|
bool bSiriusOut = False
|
|
bool bPlayerOut = False
|
|
|
|
_00E_MQP02_Functions Property MQP02 Auto
|
|
|
|
Actor Property MQP02_SiriusREF Auto
|
|
Actor Property PlayerREF Auto |