Hey guys I was wondering if you could tell me how to kill a unit that hasn't yet spawned. You see, I have a map where each active player has a barracks spawn at their starting location at the start of the game.
It looks like-
Player Group - Pick each player in (Active Players) and spawn (1) (Barracks) at (Start Location of [Picked Player])
The problem is, I have a "player" who I don't want to get a barracks. His name is Military. And he is just kind of there as a handy helper, i.e. he isnt user controlled but has no AI.
So I'm wondering how I would either go about not counting him as an active player, or how to kill his barracks as soon as its created in the end of the game. Any help would be appreciated, thanks.
@J_cup:
thanks, although i couldnt find any function that was "player number"esque you gave me another "if then else" idea that worked.
"if picked player == computer" do nothing
ty
and if then else if player number is not equal to military number spawn barracks else do nothing
"Player" is really just an integer value that references the player number.
Any time a function asks for an integer "Player," you can think of this as the player number.