User Tools

Site Tools


4rpl:commands:setunitcanbuild

This is an old revision of the document!


Index

SetUnitCanBuild

SetUnitCanBuild(<-unitType <-canBuild)1)

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.

Examples

SetUnitCanBuild("beacon" true)

Index

1)
Note: This does not work for custom units as of now CW v2.2.9. You must remove the player menu name manually instead within the CPACK manager.
4rpl/commands/setunitcanbuild.1641947008.txt.gz · Last modified: 2025/02/14 14:56 (external edit)