Skip to content
ASArcaneMP Scripting APIScripting reference
Data shapeServer APIGenerated

WorldObjectSpawnOptions

Defined in: shared.d.ts:341

optional animation?: string

Defined in: shared.d.ts:383

A looped animation for a skeletal mesh, on the mesh’s own skeleton (‘/Game/Animation/…/X_anm.X_anm’).


optional collision?: boolean

Defined in: shared.d.ts:353


optional drawDistance?: number

Defined in: shared.d.ts:381

Client cull distance in cm; 0 never culls. Omitted, a mesh never culls and a Blueprint keeps its own distances.


optional endFx?: string

Defined in: shared.d.ts:403

An effect each client plays where its copy is when the ttl runs out (a destroy before that plays none).


optional fx?: string

Defined in: shared.d.ts:358

Niagara or Cascade system attached to the mesh, e.g. a trail (‘/Game/VFX/…/VFX_NS_X.VFX_NS_X’).


optional fxSocket?: string

Defined in: shared.d.ts:360

Mesh socket the effect rides; the mesh origin when omitted.


optional massKg?: number

Defined in: shared.d.ts:375

Mass override for a physics body; the mesh’s own mass when omitted.


optional material?: string

Defined in: shared.d.ts:385

A material on every slot of the mesh; omitted keeps the mesh’s own.


optional materials?: Record<number, string>

Defined in: shared.d.ts:390

A material per slot, by slot index 0-63 (at most 16), over material: { 0: "/Game/.../MI_X.MI_X" }. Meshes only. Change it later with setMaterial.


optional motion?: object

Defined in: shared.d.ts:397

Each client moves it from the spawn pose along heading (world yaw in degrees, default yaw) at speed cm/s, following the ground below it with followGround. The server’s position stays at the spawn point while it runs; a client that streams it in mid-run places it where everyone else sees it. Assigning position or rotation on the handle ends the run and leaves it at the assigned pose. Not with physics.

optional followGround?: boolean

optional heading?: number

speed: number


optional physics?: boolean

Defined in: shared.d.ts:373

A physics body (static meshes only) that the nearest client simulates and every client sees; ignores collision.


optional pitch?: number

Defined in: shared.d.ts:345


optional promptHeight?: number

Defined in: shared.d.ts:355


optional promptRange?: number

Defined in: shared.d.ts:356


optional promptText?: string

Defined in: shared.d.ts:354


optional roll?: number

Defined in: shared.d.ts:347


optional scale?: number | Partial<Vector3>

Defined in: shared.d.ts:352

One number for every axis, or { x, y, z } to stretch each (a missing axis is 1). Each axis 0.001 to 1000 in size; a negative axis mirrors. Collision follows. Throws RangeError outside that.


optional shrinkOut?: number

Defined in: shared.d.ts:405

Seconds before the ttl runs out over which it shrinks away.


optional simulated?: boolean

Defined in: shared.d.ts:377

A Blueprint class whose own logic one elected client runs; everyone else sees its pose relayed.


optional sound?: string

Defined in: shared.d.ts:366

A Wwise event name each client plays on its copy for as long as it has one, looping events included: it moves with the object, a player who streams the object in gets it then, and it stops when the copy streams out, the ttl runs out or the object is destroyed. For a sound posted mid-life, see Audio.playSoundOnObject.


optional soundSocket?: string

Defined in: shared.d.ts:371

Mesh socket the sound rides. Omitted or missing on the mesh, it rides the object’s root, or a skeletal mesh’s Head bone when it has one (the game’s own rule for a sound on a body).


optional startFx?: string

Defined in: shared.d.ts:401

An effect each client plays where the object appears, when it streams in within half a second of creation.


optional streamRange?: number

Defined in: shared.d.ts:379

Interest radius in cm: only players this close receive the object. 100-200000, default 50000 (500 m).


optional ttl?: number

Defined in: shared.d.ts:399

Seconds until the server destroys it, like Fx; 0 or omitted lives until destroyed. Up to 3600.


optional x?: number

Defined in: shared.d.ts:342


optional y?: number

Defined in: shared.d.ts:343


optional yaw?: number

Defined in: shared.d.ts:346


optional z?: number

Defined in: shared.d.ts:344