avalya
New Member
- Reaction score
- 37
Okey, facing another problem here; how do I remove Unit Group Arrays? I noticed I can't specify Integer A, or a variable such as PlayerNumber, what do I do to destroy the correct unit group?
I'll try that Laiev, I however got a variable already named PlayerNumber that assigns the player number in the start of the trigger. Would it look the same?
integer A
Trigger:
- custom script: call DestroyGroup( udg_group[GetForLoopIndexA()] )
Hmm, yeah but would I be able to use a variable in the array?
Trigger:
- custom script: call DestroyGroup( udg_group[GetConvertedPlayerId(GetTriggerPlayer())] )
call DestroyGroup ( udg_IceLance_Group[ udg_PlayerNumber[ GetConvertedPlayerId( GetTriggerPlayer() ) ] ] )
call DestroyGroup ( udg_IceLance_Group[ udg_PlayerNumber[ bj_forLoopAIndex ] ] )