~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetUnitCanBuild|Get]] * [[4rpl:commands:SetUnitCanBuild|Set]] ====== 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 [[4rpl:commands:setcmodplayermenuname|SetCModPlayerMenuName]] instead. ===== Examples ===== SetUnitCanBuild("beacon" true) <=[[4rpl:start| Index]]