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

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