Checks to see if a given particle type exists.


GML Code Example


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

Returns: Boolean


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


GML Code Example

if !part_type_exists(global.p1)
    global.p1 = part_type_create();

The above code checks to see if the global variable "p1" stores the index of a particle type and if it does not it creates one.

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