• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to check if point is buildable

Status
Not open for further replies.
Level 11
Joined
Nov 23, 2013
Messages
665
Perhaps with this boolean condition:
  • Pathing trigger
    • Conditions
      • (Terrain pathing at (<Area of your building>) of type Buildable is off) Equal TRUE
 
Level 11
Joined
Nov 23, 2013
Messages
665
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 :/
 
Level 5
Joined
Jul 14, 2014
Messages
115
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)))
      • Custom script: exitwhen GetUnitCurrentOrder(udg_ai_unit_temp) != String2OrderIdBJ("none")
      • Custom script: endloop
    • Else - Actions
 
Status
Not open for further replies.
Top