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
| Field | Value |
|---|---|
| Display | Stop FX |
| Category | fx |
| Access | ScriptCheat |
| Scope | B2Authority |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| entity_id | entityId | yes | — | Entity carrying the FX. Required - there is no default. |
| fx_id | name | no | — | 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
});