part_attractor_exists - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Gets whether or not the given particle attractor exists in the given particle system and returns the result.
Parameter | Data Type | Description |
---|---|---|
sys | integer | index of the particle system |
ind | integer | index of the particle attractor |
boolean: Returns whether the particle attractor exists in the particle system.
// demonstrates checking if a particle attractor exists
if (part_attractor_exists(sys, attr)) {
// attractor does exist
} else {
// attractor does not exist
}
NOTOC