WorldObjectSpawnOptions
Defined in: shared.d.ts:341
Properties
Section titled “Properties”animation?
Section titled “animation?”
optionalanimation?: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’).
collision?
Section titled “collision?”
optionalcollision?:boolean
Defined in: shared.d.ts:353
drawDistance?
Section titled “drawDistance?”
optionaldrawDistance?: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.
endFx?
Section titled “endFx?”
optionalendFx?: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).
optionalfx?: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’).
fxSocket?
Section titled “fxSocket?”
optionalfxSocket?:string
Defined in: shared.d.ts:360
Mesh socket the effect rides; the mesh origin when omitted.
massKg?
Section titled “massKg?”
optionalmassKg?:number
Defined in: shared.d.ts:375
Mass override for a physics body; the mesh’s own mass when omitted.
material?
Section titled “material?”
optionalmaterial?:string
Defined in: shared.d.ts:385
A material on every slot of the mesh; omitted keeps the mesh’s own.
materials?
Section titled “materials?”
optionalmaterials?: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.
motion?
Section titled “motion?”
optionalmotion?: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.
followGround?
Section titled “followGround?”
optionalfollowGround?:boolean
heading?
Section titled “heading?”
optionalheading?:number
speed:
number
physics?
Section titled “physics?”
optionalphysics?:boolean
Defined in: shared.d.ts:373
A physics body (static meshes only) that the nearest client simulates and every client sees; ignores collision.
pitch?
Section titled “pitch?”
optionalpitch?:number
Defined in: shared.d.ts:345
promptHeight?
Section titled “promptHeight?”
optionalpromptHeight?:number
Defined in: shared.d.ts:355
promptRange?
Section titled “promptRange?”
optionalpromptRange?:number
Defined in: shared.d.ts:356
promptText?
Section titled “promptText?”
optionalpromptText?:string
Defined in: shared.d.ts:354
optionalroll?:number
Defined in: shared.d.ts:347
scale?
Section titled “scale?”
optionalscale?: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.
shrinkOut?
Section titled “shrinkOut?”
optionalshrinkOut?:number
Defined in: shared.d.ts:405
Seconds before the ttl runs out over which it shrinks away.
simulated?
Section titled “simulated?”
optionalsimulated?:boolean
Defined in: shared.d.ts:377
A Blueprint class whose own logic one elected client runs; everyone else sees its pose relayed.
sound?
Section titled “sound?”
optionalsound?: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.
soundSocket?
Section titled “soundSocket?”
optionalsoundSocket?: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).
startFx?
Section titled “startFx?”
optionalstartFx?: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.
streamRange?
Section titled “streamRange?”
optionalstreamRange?:number
Defined in: shared.d.ts:379
Interest radius in cm: only players this close receive the object. 100-200000, default 50000 (500 m).
optionalttl?:number
Defined in: shared.d.ts:399
Seconds until the server destroys it, like Fx; 0 or omitted lives until destroyed. Up to 3600.
optionalx?:number
Defined in: shared.d.ts:342
optionaly?:number
Defined in: shared.d.ts:343
optionalyaw?:number
Defined in: shared.d.ts:346
optionalz?:number
Defined in: shared.d.ts:344