part_type_death - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

Description

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.

Parameters

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

Return Values

void: This function does not return anything.

Example Call

// demonstrates setting particle type 1 to emit 5 particles of type 2 when it dies
part_type_death(type1, 5, type2);

NOTOC

⚠️ **GitHub.com Fallback** ⚠️