Skip to main content

Execute_PlayFxWithHandle

Description

Plays an FX effect on the specified object and registers it to FXHandles. Registered FX can be hidden via SetFXVisible (cheat) and stopped via S_StopAllFx. Use this instead of PlayFX when the FX needs to be controlled by the cheat or stop-all system. If the FX has a SpawnerId set, the effect is spawned at the world spawner location instead of on the entity.

Parameters

ParameterDescription
BaseObjectThe target object to play the FX effect on.
S1The FX ID defined in Fx.json.

Examples

DescriptionBaseObjectCommand
Play Emotion FX on Self (hideable by cheat)SelfPlayFxWithHandle