39 lines
811 B
Plaintext
39 lines
811 B
Plaintext
|
Scriptname _00E_MQ12b_SC5_CommanderSilvasSC extends ObjectReference
|
||
|
|
||
|
Event OnUpdate()
|
||
|
|
||
|
MQ12b.SetStage(47)
|
||
|
|
||
|
if !PlayerREF.IsInCombat()
|
||
|
|
||
|
int iIndex = _00E_MQ12b_CommanderSilvasSoldiers.GetSize()
|
||
|
|
||
|
while iIndex > 0
|
||
|
|
||
|
iIndex -= 1
|
||
|
Actor akActorToKill = _00E_MQ12b_CommanderSilvasSoldiers.GetAt(iIndex) as Actor
|
||
|
akActorToKill.Kill(PlayerREF)
|
||
|
|
||
|
endwhile
|
||
|
|
||
|
EndIf
|
||
|
|
||
|
if _00E_MC_TealorREF.GetDistance(MQ12b_SC13_TealorTalkMarker) >= 450
|
||
|
_00E_MC_TealorREF.MoveTo(MQ12b_SC13_TealorTalkMarker)
|
||
|
EndIf
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnDeath(Actor akKiller)
|
||
|
|
||
|
RegisterForSingleUpdate(25)
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Actor Property PlayerREF Auto
|
||
|
Actor Property _00E_MC_TealorREF Auto
|
||
|
|
||
|
Quest Property MQ12b Auto
|
||
|
Formlist Property _00E_MQ12b_CommanderSilvasSoldiers Auto
|
||
|
|
||
|
ObjectReference Property MQ12b_SC13_TealorTalkMarker Auto
|