How do I determine if I can at a given point to build a certain building? For example, can I at the point (120, 120) to build a command center or barracks?
(Find Placement From ((Position of UnitPicked) offset by 3.0 towards CreatePoint) Point For Unit Type 1 - Wall 3x1 Vertical And Player (Get Slot From Player(int)) With Range 5.0)
i would create an invisible flying unit at that point ordering it to build a dummy 1x1 unit. if the triggering progress unit is completed then you can build.
How do I determine if I can at a given point to build a certain building? For example, can I at the point (120, 120) to build a command center or barracks?
Sorry, i use google translate. :)
there is function called Find Placement for Unit.
(Find Placement From ((Position of UnitPicked) offset by 3.0 towards CreatePoint) Point For Unit Type 1 - Wall 3x1 Vertical And Player (Get Slot From Player(int)) With Range 5.0)
No such function.
i would create an invisible flying unit at that point ordering it to build a dummy 1x1 unit. if the triggering progress unit is completed then you can build.
It returns a point. So you can make a point variable and set it using Find Placement.