part_type_death - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Sets the number and type of particles that must be generated by the given particle type when it dies. Indicating a negative number for the particle count will cause the particles to be emitted by chance. These particles are only created when the particle dies at the end of its life, not when it dies because of a destroyer.
Parameter | Data Type | Description |
---|---|---|
ind | integer | index of the particle type |
numb | integer | number of particles |
type | integer | index of the particle type to emit |
void: This function does not return anything.
// demonstrates setting particle type 1 to emit 5 particles of type 2 when it dies
part_type_death(type1, 5, type2);
NOTOC