User Tools

Site Tools


4rpl:commands:setunitcanbuild

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

4rpl/commands/setunitcanbuild.txt · Last modified: 2022/10/28 10:26 by Vertu