part_system_exists

Checks to see whether a particle system exists.

Syntax:

GML Code Example

part_system_exists(ind);


Argument Description
ind The index of the particle system to check for.


Returns: Boolean


Description

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


Example:

GML Code Example

if !part_system_exists(global.Sname)
    {
    global.Sname = part_system_create();
    }
 

the above code checks to see if the particle system referenced in the global variable exists and if it does not it is created.





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