Skip to content

Part_type_step

hugh greene edited this page Jun 20, 2022 · 1 revision

Description

Sets the number and type of particles that must be generated in each step by the given particle type. Indicating a negative number for the particle count will cause the particles to emitted with a chance of -1/number. For instance, if -5 is given for the particle count, 1 particle will be emitted every 5 steps.

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 generate 5 particles of type 2 each step
part_type_step(type1, 5, type2);

NOTOC

Clone this wiki locally