Skip to main content

fx.stop

Overview

  • Stops FX that fx.spawn attached to an entity. Pass fx_id to stop just that FX row, or omit it to stop every FX on the entity. This only reaches entity-attached FX - world-transform spawns are owned by a transient anchor actor that cannot be addressed afterwards, so spawn anything you intend to stop with an entity_id. Useful because neither the FX table nor the FX object has a lifetime field: a looping Niagara asset never ends on its own.

Metadata

FieldValue
DisplayStop FX
Categoryfx
AccessScriptCheat
ScopeB2Authority
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdyes—Entity carrying the FX. Required - there is no default.
fx_idnameno—FX table row ID to stop. Omit to stop every FX on the entity.

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('fx.stop', {
entity_id: 0,
fx_id: '', // optional
});