part_emitter_create

Creates a new emitter in the given particle system.

Syntax:

part_emitter_create(ps);


Argument Description
ps The particle system to create the emitter in.


Returns: Real


Description

This function must be used to create a new emitter and assign it to a given particle system. The function will return the index value for the new emitter which must be stored in a variable and used in all further functions that reference the emitter, and the emitter itself must be destroyed when no longer being used to prevent memory leaks (this can be achieved using the specific emitter destroy functions or by destroying the whole particle system that the emitter belongs to).


Example:

p_emit1 = part_emitter_create(Sname);

This will create a new particle emitter and store its index in the variable "p_emit".


Back: Particles
Next: part_emitter_clear
© Copyright YoYo Games Ltd. 2018 All Rights Reserved