Skip to main content

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

ParameterDescription
BaseObjectThe character whose visibility will be changed (Self or Target).
S1Reason identifier for this visibility change (e.g. "Sleep", "HiddenInCutscene").
F1Non-zero value to hide the character; near-zero (0.0) to make visible.

Examples

DescriptionBaseObjectCommandS1F1
Hides self with reason Sleep.SelfSetInvisibleSleep1.0
Restores self visibility with reason Sleep.SelfSetInvisibleSleep0.0
Hides target with reason HiddenInCutscene.TargetSetInvisibleHiddenInCutscene1.0
Restores target visibility with reason HiddenInCutscene.TargetSetInvisibleHiddenInCutscene0.0