Execute_SetInvisible
Description
Sets the visibility of the specified character. When F1 is non-zero the character is hidden; when F1 is near zero the character becomes visible. A reason string (S1) is required, and all active reasons must be cleared before visibility is fully restored.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The character whose visibility will be changed (Self or Target). |
| S1 | Reason identifier for this visibility change (e.g. "Sleep", "HiddenInCutscene"). |
| F1 | Non-zero value to hide the character; near-zero (0.0) to make visible. |
Examples
| Description | BaseObject | Command | S1 | F1 |
|---|---|---|---|---|
| Hides self with reason Sleep. | Self | SetInvisible | Sleep | 1.0 |
| Restores self visibility with reason Sleep. | Self | SetInvisible | Sleep | 0.0 |
| Hides target with reason HiddenInCutscene. | Target | SetInvisible | HiddenInCutscene | 1.0 |
| Restores target visibility with reason HiddenInCutscene. | Target | SetInvisible | HiddenInCutscene | 0.0 |
Back to Command FinderSearch and filter all 399 Script Execution documents