Sets value of a specific variable as a boolean.
Syntax |
void set_bool(const string &in name, bool value) |
---|---|
name |
Variable name |
value |
Value of the variable |
Result |
(none) |
Notes |
For more information about the variable, see the section on default variables. |
Example of use:
bool execute(pan3d::object @panel) { ... panel.set_bool("item1.visible", true); ... } |