HI, I forgot how to spawn units only for the players actualy in the game (so you can 2 player without player 3 and 4's units standing around), I know its eazy because i did it before but I forgot so please help me .
I am largely inactive, but I am still around. Feel free to poke me if you need some help, just be warned that I only really come back if I need help and/or if I'm posting a new map/library.
I got another problem that is related, I want to spawn a unit for the 4 players only if they are active (solved but might need to change because of what is coming next) then I want to give a there own unit variable to each unit and I don't know how to change my trigger to do so. Please help me
HI, I forgot how to spawn units only for the players actualy in the game (so you can 2 player without player 3 and 4's units standing around), I know its eazy because i did it before but I forgot so please help me .
Thanks
@pokenoufl: Go
@Yaksmanofage: Go
Thanks
I got another problem that is related, I want to spawn a unit for the 4 players only if they are active (solved but might need to change because of what is coming next) then I want to give a there own unit variable to each unit and I don't know how to change my trigger to do so. Please help me
u might want to use an array variable like: new variable of type unit - make it an array avatar [4] (unit)
where the 4 is nr of max players. could be 5 or whatever then do this, just as Yaksmanofage said and add the last line
Pick each player in Active Players and do Actions Create unit for player (Picked Player) at [...] Set AVATAR[picked player] = last created unit