Index

SetUnitCanBuild

SetUnitCanBuild(<-unitType <-canBuild)

Description

Sets a boolean indicating if the specified unit can be built. This call controls the visibility of the build buttons in the left build pane.
See GetUnitCanBuild for the list of unit types.
Note: This does not work for custom units. You must must use SetCModPlayerMenuName instead.

Examples

SetUnitCanBuild("beacon" true)

Index