sentrywiz
S
sentrywiz
Can I pick units and then somehow add them to array vars?
I guess I just don't understand how picking units work.
Is it like a loop, picking each unit at a time? Or its picking
all units at the same time? I want to implement both because
I need to fill array vars with the unit's position, face angle and type.
So at the start of the game, I want to pick all neutral hostile units
then assign three array variables to each, but I'm confused cuz idk
what to put in the array space. Its not player number of owner of picked unit
or Integer A/B. So what do I put there?
If you're wondering - I'm making my own creep revival system.
Because I have multiple unit types, I want them to revive at
certain periods rather than each every X seconds.
I guess I just don't understand how picking units work.
Is it like a loop, picking each unit at a time? Or its picking
all units at the same time? I want to implement both because
I need to fill array vars with the unit's position, face angle and type.
So at the start of the game, I want to pick all neutral hostile units
then assign three array variables to each, but I'm confused cuz idk
what to put in the array space. Its not player number of owner of picked unit
or Integer A/B. So what do I put there?
If you're wondering - I'm making my own creep revival system.
Because I have multiple unit types, I want them to revive at
certain periods rather than each every X seconds.