Yizzy
New Member
- Reaction score
- 20
Hi, I've been working on an arena map, though I dosen't seem to get the following trigger to work:
The NrOfPlayers (int), seem to generate the correct number but the units aren't removed.
Any ideas?
Code:
Initialization
Events
Map initialization
Conditions
Actions
(...)
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
((Picked player) slot status) Equal to Is playing
((Picked player) controller) Equal to User
Then - Actions
Set NrOfPlayers = (NrOfPlayers + 1)
(...)
Else - Actions
Set TempGroup = (Units owned by (Picked player) matching (((Matching unit) is A structure) Equal to False))
Unit Group - Pick every unit in TempGroup and do (Actions)
Loop - Actions
Unit - Remove (Picked unit) from the game
Custom script: call DestroyGroup (udg_TempGroup)
(...)
Any ideas?