This is an old revision of the document!
⇐ Index
GetUnitCanBuild(<-unitType) ->canBuild
Returns a boolean indicating if the specified unit can be built. This call controls the visibility of the build buttons in the left build pane. Unit type is a subset of Unit Types and must be represented on the build pane.
The unitType can be one of:
if (GetUnitCanBuild("beacon")) Print("The Player can build beacons") endif
⇐ Index