IssueBuildOrder

Parameters
whichPeon unit
unitToBuild string
x real
y real
bug

If the order is to build a structure and the unit can build that structure in principle (and the spot is not blocked, either), this function will still return true even if the player lacks the resources for it.

comment
note

If the order is to build a structure and the unit can build that structure in principle but the player lacks the resources for it, then the unit will be pinged on the minimap in yellow for its owning player.

return type
boolean
Source code
native IssueBuildOrder              takes unit whichPeon, string unitToBuild, real x, real y returns boolean
Source
common.j
wc3modding.com
IssueBuildOrder