Hello i need some help to make a trigger for spawn points via triggers. and store them in point varriables
My problem:
I got a moving spawn point(a unit with a model fo a flag) that moves every 30 seconds.
I got 2 teams, with a random amount of units between 1-6 untis. (based on how many units that are alive when this event happen)
team 1 should spawn above the spawning point and team 2 shoudl spawn under it.
the unit should stand in a row like this:
As i tried to show in the above, i want the mid number of the units spawn points to be centered with the "main" spawn point(in the case of a even number pof units, i would want it to be centered between the 2 mid points)
How should i achive this in the best possible way?
Note: i do not want to use regions, i rather want it to be stored as points than regions.
my guess is that this could be achived with point with polar offset from the spawn points, however my mathematical knowledge isn't enough for this.
My problem:
I got a moving spawn point(a unit with a model fo a flag) that moves every 30 seconds.
I got 2 teams, with a random amount of units between 1-6 untis. (based on how many units that are alive when this event happen)
team 1 should spawn above the spawning point and team 2 shoudl spawn under it.
the unit should stand in a row like this:
Code:
= = = = 4 units in team 1 (centered between unit 2-3 to the spawn point)
* spawn point
= = = = = 5 units in team 2(centered at unit 3 to the spawn point)
As i tried to show in the above, i want the mid number of the units spawn points to be centered with the "main" spawn point(in the case of a even number pof units, i would want it to be centered between the 2 mid points)
How should i achive this in the best possible way?
Note: i do not want to use regions, i rather want it to be stored as points than regions.
my guess is that this could be achived with point with polar offset from the spawn points, however my mathematical knowledge isn't enough for this.