ArmyOfFrogs
New Member
- Reaction score
- 20
Trigger keeps spawning 2 units rather than just 1.
Here is what sets Player
and PlayersActive is just count players in all players matching controlled by user.
Can anyone spot the error?
Trigger:
- Give
- Events
- Time - Elapsed game time is 8.00 seconds
- Conditions
- Actions
- Set tmp_Point = (Center of PlayerNewStart <gen>)
- For each (Integer A) from 0 to PlayersActive, do (Actions)
- Loop - Actions
- Unit - Create 1 Footman for Player[(Integer A)] at tmp_Point facing Default building facing degrees
- Loop - Actions
- Custom script: call RemoveLocation (udg_tmp_Point)
- Events
Here is what sets Player
Trigger:
- PlayerSet
- Events
- Time - Elapsed game time is 0.10 seconds
- Conditions
- Actions
- Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
- Loop - Actions
- Set PlayerSetCount = (PlayerSetCount + 1)
- Set Player[PlayerSetCount] = (Picked player)
- Loop - Actions
- Player Group - Pick every player in (All players controlled by a User player) and do (Actions)
- Events
and PlayersActive is just count players in all players matching controlled by user.
Can anyone spot the error?