4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
642 B

Scriptname _00E_MQ03_MercenaryFailsaveSC extends ObjectReference
Event OnDeath(Actor akKiller)
if AllMercenariesDead()
if !MQ04_SC3_DeadBodyComment.IsPlaying()
MQ04_SC3_DeadBodyComment.ForceStart()
EndIf
EndIf
EndEvent
bool Function AllMercenariesDead()
int iIndex = _00E_MQ03_Mercenaries_Property.GetSize()
while iIndex > 0
iIndex -= 1
Actor akActorToCheck = _00E_MQ03_Mercenaries_Property.GetAt(iIndex) as Actor
if !akActorToCheck.IsDead()
Return False
EndIf
endwhile
Return True
EndFunction
Scene Property MQ04_SC3_DeadBodyComment Auto
Formlist Property _00E_MQ03_Mercenaries_Property Auto