enderalse/source/scripts/_00e_mq12b_tealorcombatsc.psc

46 lines
846 B
Plaintext

Scriptname _00E_MQ12b_TealorCombatSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF
if MQ12b.GetStage() >= 30 && MQ12b.GetStage() < 40
if _00E_MC_TealorREF.IsInCombat()
_00E_MC_TealorREF.StopCombat()
_00E_MC_TealorREF.StopCombatAlarm()
EndIf
EndIf
if !bDone
bDone = True
int iIndex = _00E_MQ12b_InfiltratorsInMarketFrmlst.GetSize()
while iIndex > 0
iIndex -= 1
Actor akActor = _00E_MQ12b_InfiltratorsInMarketFrmlst.GetAt(iIndex) as Actor
if !akActor.IsDead()
akActor.Kill(akActor)
endif
endwhile
endif
EndIf
EndEvent
bool bDone
Actor Property _00E_MC_TealorREF Auto
Actor Property PlayerREF Auto
Formlist Property _00E_MQ12b_InfiltratorsInMarketFrmlst Auto
Quest Property MQ12b Auto