Particles¶
System · Particles · server and client scripts
Particles provides one-shot particle spawning, the built-in Sparks preset, and platform texture ids. Control individual effects and emitters through their component views (Play, Stop, Emit, Clear). See particle effects for how to build them.
PlayAt¶
PlayAt(source: Entity | SpawnInit, position: Vector3, lifetime: number?, options: PlayAtOptions?) -> Entity
PlayAt clones a particle template entity or spawns a SpawnInit table at a world position, plays it, and marks it Transient with a Lifetime so it is removed after its particles finish. Continuous emitters require a positive lifetime in seconds; one-shot bursts can omit lifetime. Pass an optional PlayAtOptions table with Rotation and Parent.
Example
Sparks¶
Sparks is a SpawnInit preset table for a burst of sparks, suitable for Particles.PlayAt or World.Spawn.
Textures¶
Textures is a table of built-in platform particle texture asset ids (Spark, FireLoop, SmokePuff).