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:
Note: Avoid using this call frequently. It is very CPU intensive and should only be declared at the most minimalistic applications. Never use this more than you need to for as infrequent as possible.
if (GetUnitCanBuild("beacon")) Print("The Player can build beacons") endif
⇐ Index