#1 2016-01-15 16:31:12

gaya
Member

Spawn particle from code?

I'm trying to add a smoke puff particle on each footstep made by a player. Does anyone know the API for spawning particles from the code?

Offline

#2 2016-01-15 18:16:16

chasester
Member

Re: Spawn particle from code?

prefix_particle_Type

the one you want is probably
void regular_particle_splash(int type, int num, int fade, const vec &p, int color, float size, int radius, int gravity, int delay)
should look like
void regular_particle_splash(PART_STEAM, 1, 40, world_position , color, 5, 5, 2);

or something like that
Be super cool if the terrain could tell the particle what color to render.

Offline

Board footer