How can I get the max amount of arrays set for a variable?
At the very top of the picture below I'm making a loop which will loop 3 times, but I've got a variable called Objectives[15][3] and I might be increasing the arrays for the second dimension later on and I don't want to go back and change the loop manually then, instead it would be easier if I could just define the amount of arrays that exist for that variable and dimension and make it loop that many times. Is it possible? If so, how?
Hi guys. I'm in need of some help. I'm still very new to mapping and I'm by no means an expert, bear with me!
I'm trying to make a unit spawner, solely through the use of triggers. I want said spawner to spawn units who will patrol the nearby area but not wander off too far away from the spawner itself. I feel like I've been close at making it work on my own but I've run into a bit of trouble that, after several days of struggle, I can't solve on my own.
Here's the trigger I've got so far:
The problem lies in the "while" loop for a unit that is spawned since it prevents the trigger from running and (while making the unit patrol) freezes the spawner from spawning more units.
In the end I hope on making a map that will spawn a set amount of spawners at random positions on a map, which will also respawn once killed at another random position on the map. These spawners will continuously spawn units who will patrol the area around it's spawner.
Is it possible to create the spawner I'm trying to do? Any ideas on how I could make it work? Eitherway, thanks in advance.
0
How can I get the max amount of arrays set for a variable?
At the very top of the picture below I'm making a loop which will loop 3 times, but I've got a variable called Objectives[15][3] and I might be increasing the arrays for the second dimension later on and I don't want to go back and change the loop manually then, instead it would be easier if I could just define the amount of arrays that exist for that variable and dimension and make it loop that many times. Is it possible? If so, how?
Thank you in advance!
0
Thanks to you guys, it now works just as I want it to. You have no idea how grateful I am!
0
Hi guys. I'm in need of some help. I'm still very new to mapping and I'm by no means an expert, bear with me!
I'm trying to make a unit spawner, solely through the use of triggers. I want said spawner to spawn units who will patrol the nearby area but not wander off too far away from the spawner itself. I feel like I've been close at making it work on my own but I've run into a bit of trouble that, after several days of struggle, I can't solve on my own.
Here's the trigger I've got so far: The problem lies in the "while" loop for a unit that is spawned since it prevents the trigger from running and (while making the unit patrol) freezes the spawner from spawning more units.
In the end I hope on making a map that will spawn a set amount of spawners at random positions on a map, which will also respawn once killed at another random position on the map. These spawners will continuously spawn units who will patrol the area around it's spawner.
Is it possible to create the spawner I'm trying to do? Any ideas on how I could make it work? Eitherway, thanks in advance.