Movement- and Attackrange of Units

Status
Not open for further replies.
Level 2
Joined
Mar 9, 2009
Messages
21
Hey everybody.

I just tried to create a unit which is able to "see" enemies far away.
I simply changed the targetting distance of the unit to a high value (20000 is the maximum, I think), and it worked.

Now I have another problem: The unit is running in the right direction, but after a little while it turns and runs back to the place from where it has started his 'attack'. Once it reached that place, it turns again and starts a new 'attack' - and so on.

Does anybody know how I can change that?


Thx in advance.
 
Try changing

Advanced -> Gameplay constants -> Creeps Guard distance and Return Distance.

Or use AI - Ignore unit guard position trigger.

Is both not working for me.
My Unit isn't a creep, it's a human soldier.
The AI - Ignore Unit guard Position Trigger doesn't change anything, the unit returns after a short distance back to its starting point, and starts its little journey again.

Thanks for your fast reply.
 
Last edited:
I needed the same thing for my map, and changing these values have worked.

Creeps - Guard Distance = 5000
Creeps - Guard Return Distance = 5000
Creeps - Guard Return Time (sec) = 360

Although, I think this is only for Neutral Hostile.
I'm not quite sure for a Computer player, I didn't realize they stop following after a while.
 
What the ... suddenly it works. I just changed the constants once again and now everything is fine.
The funny thing is that the soldier I placed in the editor is definitely no creep. He is owned by player 2, blue, who is marked as computer player.
(Did I mention that my map isn't a melee-map?)

And I can tell you: They definitely stop after a while and run back. I don't know why they behave like that, and I don't know why changing the creep constants works for units owned by a computer, but what the hell, it does.

Thank you guys, +rep ;)
Problem solved.
 
Status
Not open for further replies.
Back
Top