part_emitter_exists

Checks to see if a given emitter exists in the given particle system.

Syntax:

GML Code Example

part_emitter_exists(ps, ind);


Argument Description
ps The particle system to check for an emitter.
ind The index of the emitter to search for.


Returns: Boolean


Description

With this function you can check to see if the given particle emitter indexed exists in the given system or not. Note that if the variable being checked is an uninitialised variable (that a particle emitter would otherwise have its index assigned to) this will throw an error.


Example:

GML Code Example

if part_emitter_exists(sname, p_emit1)
    {
    part_emitter_burst(sname, p_emit1, part_1, 30);
    }
 

The above code will check for the emitter indexed in the variable "permit" and if it exists, it will burst 30 particles from it.





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here