How do I make something like this?
I've searched for this in the forums but it only seem to detect the closest unit within a range of 600. I tried to increase the radius but it still dont work.
If your'e wondering what i am doing im making a map something like super smash bros. You are on a "2d" arena and fighting.
And this trigger should be for the "intelligent" bots im trying to do. If the closest unit is to the left of the bot he should walk left and if the closest unit is to the right he should walk right.
i hope you will understand!
Every 0.25
pick closest unit of "triggering unit" (it should check the whole map.)
Set position[1]= position of triggering unit
Set position[2]= position of closest unit
if
X value of position[1] is greater than or equal to position[2]
then
do this
else
do another this
I've searched for this in the forums but it only seem to detect the closest unit within a range of 600. I tried to increase the radius but it still dont work.
If your'e wondering what i am doing im making a map something like super smash bros. You are on a "2d" arena and fighting.
And this trigger should be for the "intelligent" bots im trying to do. If the closest unit is to the left of the bot he should walk left and if the closest unit is to the right he should walk right.
i hope you will understand!