natiny.particles.set_space

Lua
natiny.particles.set_space(particles, space)

Sets whether particles are left behind in the world or move with the emitter.

Parameters

Name Type Description
particles number Particle system handle from natiny.particles.create
space integer natiny.particles.SPACE_WORLD or natiny.particles.SPACE_LOCAL

Example

Lua
natiny.particles.set_space(engine_glow, natiny.particles.SPACE_LOCAL)