SetInvisible
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | SetInvisible | |
| Function Description: | Sets the visibility state of a Group AI Controller. If Invisible is omitted it defaults to true. The function verifies that the supplied controller is valid via CMM.IsController; if not, it logs an error and exits. | |
| File Location: | cmm.DCSFunctions.lua | |
| Syntax: | CMM.SetInvisible( boolean Ctrllr , boolean or nil Invisible ) | |
| Return Value: | ||
| Parameters: | Name | Description |
| Ctrllr | The Group AI Controller to modify (must pass IsController check). | |
| Invisible | Desired visibility state; defaults to true if omitted. | |
| Example: | local ctrl = unit:getGroup():getController(); CMM.SetInvisible(ctrl, false) -- make the group visible | |
| Example Description: | Demonstrates retrieving a controller from a unit and setting its visibility to visible (i.e., false). | |
| Related Functions: | ||
| Notes: | ||