Well I just made a trigger in my map that spawns units if you have a certain building. It goes something like this...
Events
Timer every 5 secs
Conditions
Actions
Pick each player in (All Players) and do (Actions)
If
(Tier Zero count for player (Player (Picked Player) from (All Players)), counting Complete) == 1
Then
Unit - Create 1 Zealot for player (Picked Player) at (Start location of player (Picked player)) facing 270.00 degrees. (No Options)
Else
Now the above script works as far as I can see. All the players have the unit Tier Zero and the Zealots spawn where they are supposed to but, I get a strange error message every 5 secs...
'gt_SpawnPlayer1 1_Func': Parameter
out of bounds in
'TechTreeUnitCount' (value: -1, min: 0,
max: 15)
So I'm assuming there's a value somewhere for player 1 that is -1 and shouldn't be? Can anyone tell me how to fix this.
Well I just made a trigger in my map that spawns units if you have a certain building. It goes something like this...
Events
Timer every 5 secs
Conditions
Actions
Pick each player in (All Players) and do (Actions)
If
(Tier Zero count for player (Player (Picked Player) from (All Players)), counting Complete) == 1
Then
Unit - Create 1 Zealot for player (Picked Player) at (Start location of player (Picked player)) facing 270.00 degrees. (No Options)
Else
Now the above script works as far as I can see. All the players have the unit Tier Zero and the Zealots spawn where they are supposed to but, I get a strange error message every 5 secs...
'gt_SpawnPlayer1 1_Func': Parameter out of bounds in 'TechTreeUnitCount' (value: -1, min: 0, max: 15)
So I'm assuming there's a value somewhere for player 1 that is -1 and shouldn't be? Can anyone tell me how to fix this.
Yay! Fixed my own problem. Just a very stupid mistake on my part, I used All Players when it should only have been Active Players.