|
|
@ -477,14 +477,14 @@ EndFunction |
|
|
|
Function EnableEnemiesInFormlist(Formlist formlistToProcess, GlobalVariable counterGlobal) |
|
|
|
Function EnableEnemiesInFormlist(Formlist formlistToProcess, GlobalVariable counterGlobal) |
|
|
|
|
|
|
|
|
|
|
|
Int Index |
|
|
|
Int Index |
|
|
|
Form[] enemies = formlistToProcess.ToArray() |
|
|
|
int nItems = formlistToProcess.GetSize() |
|
|
|
|
|
|
|
|
|
|
|
counterGlobal.SetValueInt(enemies.Length) |
|
|
|
counterGlobal.SetValueInt(nItems) |
|
|
|
bDoneBattleFailsave = True |
|
|
|
bDoneBattleFailsave = True |
|
|
|
|
|
|
|
|
|
|
|
Index = 0 |
|
|
|
Index = 0 |
|
|
|
While Index < enemies.Length |
|
|
|
While Index < nItems |
|
|
|
Actor enemyRef = (enemies[Index] as Actor) |
|
|
|
Actor enemyRef = (formlistToProcess.GetAt(Index) as Actor) |
|
|
|
enemyRef.Enable() |
|
|
|
enemyRef.Enable() |
|
|
|
enemyRef.SetAlpha(0.0) |
|
|
|
enemyRef.SetAlpha(0.0) |
|
|
|
Index += 1 |
|
|
|
Index += 1 |
|
|
@ -494,7 +494,7 @@ Function EnableEnemiesInFormlist(Formlist formlistToProcess, GlobalVariable coun |
|
|
|
|
|
|
|
|
|
|
|
Utility.Wait(1) |
|
|
|
Utility.Wait(1) |
|
|
|
|
|
|
|
|
|
|
|
MQ07a_EnemiesLeft.SetValueInt(enemies.Length) |
|
|
|
MQ07a_EnemiesLeft.SetValueInt(nItems) |
|
|
|
UpdateCurrentInstanceGlobal(MQ07a_EnemiesLeft) |
|
|
|
UpdateCurrentInstanceGlobal(MQ07a_EnemiesLeft) |
|
|
|
|
|
|
|
|
|
|
|
If MQ07a_CurrentWave.GetValueInt() == 1 |
|
|
|
If MQ07a_CurrentWave.GetValueInt() == 1 |
|
|
@ -768,11 +768,11 @@ Function EnableSigilStone() |
|
|
|
MQ07a_SC14_SigilstoneFX.EnableNoWait() |
|
|
|
MQ07a_SC14_SigilstoneFX.EnableNoWait() |
|
|
|
MQ07a_SC14_SigilStoneLight2.EnableNoWait() |
|
|
|
MQ07a_SC14_SigilStoneLight2.EnableNoWait() |
|
|
|
|
|
|
|
|
|
|
|
Form[] refsToDisable = MQ07a_SC14_FurnitureToDisable.ToArray() |
|
|
|
|
|
|
|
ActorBase dummyOwner = PlayerREF.GetActorBase() |
|
|
|
ActorBase dummyOwner = PlayerREF.GetActorBase() |
|
|
|
|
|
|
|
int nItems = MQ07a_SC14_FurnitureToDisable.GetSize() |
|
|
|
Int Index = 0 |
|
|
|
Int Index = 0 |
|
|
|
While Index < refsToDisable.Length |
|
|
|
While Index < nItems |
|
|
|
(refsToDisable[Index] as ObjectReference).SetActorOwner(dummyOwner) |
|
|
|
(MQ07a_SC14_FurnitureToDisable.GetAt(Index) as ObjectReference).SetActorOwner(dummyOwner) |
|
|
|
Index += 1 |
|
|
|
Index += 1 |
|
|
|
EndWhile |
|
|
|
EndWhile |
|
|
|
|
|
|
|
|
|
|
@ -813,10 +813,10 @@ EndFunction |
|
|
|
|
|
|
|
|
|
|
|
Function EndSC14() |
|
|
|
Function EndSC14() |
|
|
|
|
|
|
|
|
|
|
|
Form[] refsToDisable = MQ07a_SC14_FurnitureToDisable.ToArray() |
|
|
|
int nItems = MQ07a_SC14_FurnitureToDisable.GetSize() |
|
|
|
Int Index = 0 |
|
|
|
Int Index = 0 |
|
|
|
While Index < refsToDisable.Length |
|
|
|
While Index < nItems |
|
|
|
(refsToDisable[Index] as ObjectReference).SetActorOwner(None) |
|
|
|
(MQ07a_SC14_FurnitureToDisable.GetAt(Index) as ObjectReference).SetActorOwner(None) |
|
|
|
Index += 1 |
|
|
|
Index += 1 |
|
|
|
EndWhile |
|
|
|
EndWhile |
|
|
|
|
|
|
|
|
|
|
|