• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

AI build Order (Computer Player)

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,576
When an Ally/Enemy building die, one of the workers rebuilt that destroyed building (Computer Player) but the problem is the position of that constructed building isn't on the right postion of last daying building, E.g : When a tower is built on spot A then being destroyed when reconstruction the tower goes on spot B (Not in the same position in other words), and the second problem is that ^^ can cause bug for units (stuck between building) or even build defenses (towers) far away from the right spot!.

Now I know it's possible to order a unit to rebuild last destroyed building on his daying position via triggers. But the Question is : Is it possible to order the AI to build on the same daying postion?
 
Level 11
Joined
Aug 24, 2012
Messages
429
Yeah you would have to trigger it, I think there is a JASS function to order the AI to rebuild all buildings that are destroyed and usually they build in the exact same spot. This can be seen by how the AI works in the Campaign maps.
 
Level 5
Joined
Jan 16, 2016
Messages
109
There's a thingie in object editor that makes the AI place the buildings more specifically, like, Lumbermill = resource, AI places that building near to tree/goldmine. Hope it helps.
 
Status
Not open for further replies.
Top