• 🏆 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!

[General] AI doesn't construct units

Level 21
Joined
Dec 3, 2020
Messages
518
So I made an AI script which tells the AI to use Battle Golems in its attack waves, but instead of the unit being trained from a structure, it is built from a Peasant.
I gave it the Mechanical Unit Classification and I was able to construct the units with a Peasant without an issue but the AI does not do it.
Any idea how I can make it work?
And yes, the JASS script works fine, that is not the issue.

Perhaps do I need to use the Ancient Protector structure (with Battle Golem model) and when it is finished being constructed, tell it through a trigger to uproot and then remove the root/uproot ability from the unit?
Since in the campaign, the AI uses Ancient Protectors in the missions where you play as Grom to attack you and it works in the campaign.

Thank you in advance!
 
Top