Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I'm making an ai and I need to know if a building can be built at the given point to make sure the ai never randomly selects an unbuildable point and therefor delays its progress.
I did a quick test, it works even for buildings, not just terrain type.
However, this condition checks if a point is buildable. There's probably a way to check it for the area of each building about to be constructed, but that's not something i'm familiar with, sorry :/
For anyone interested I've managed to find another way. Ignore the leaks.
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ai_unit_temp Not equal to No unit
Then - Actions
Custom script: loop
Unit - Order ai_unit_temp to build a |cffFF8824Barracks at (Random point in (Region centered at (Position of ai_unit_capital[(Player number of (Picked player))]) with size (1024.00, 1024.00)))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.