Skip to main content

fx.spawn

Overview

  • Spawns an FX table entry at an explicit world transform or attached to an entity. Spawner-backed montage FX are played through a transient B1FXSpawnActor at the requested transform.

Metadata

FieldValue
DisplaySpawn FX
Categoryfx
AccessUserCheat
ScopeB2Authority
Tags—
Aliases—

Parameters

NameTypeRequiredDefaultDescription
fx_idnameyes—FX table row ID
entity_identityIdno—Optional target entity ID. If omitted, transform is world-space.
socketnameno—Optional socket name for entity attachment
xfloatno—X location. Required for world-space spawn, relative otherwise.
yfloatno—Y location. Required for world-space spawn, relative otherwise.
zfloatno—Z location. Required for world-space spawn, relative otherwise.
pitchfloatno0Pitch in degrees
yawfloatno0Yaw in degrees
rollfloatno0Roll in degrees
scalefloatno1Uniform scale
scale_xfloatno—X scale override
scale_yfloatno—Y scale override
scale_zfloatno—Z scale override
with_handleboolnofalseRegister the FX with B1 FX handles

Usage

await inzoi.cli.execute('fx.spawn', {
fx_id: '',
entity_id: 0, // optional
socket: '', // optional
x: 0.0, // optional
y: 0.0, // optional
z: 0.0, // optional
pitch: 0, // optional
yaw: 0, // optional
roll: 0, // optional
scale: 1, // optional
scale_x: 0.0, // optional
scale_y: 0.0, // optional
scale_z: 0.0, // optional
with_handle: false, // optional
});