This function creates a new particle system and returns its unique index number.
The system will be assigned a managed layer and will be set to have a depth of 0. Managed layers are not accessible to the user and are used only for internal management when depth is used instead of layers. Normally you would use the function part_system_create_layer instead of this one.
Optionally you can provide a Particle System Asset created using The Particle System Editor. Doing so will create the system defined in that asset, with all of its emitters.
part_system_create([partsys]);
Argument | Type | Description |
---|---|---|
partsys | Particle System Asset | OPTIONAL The particle system asset to create an instance of |
global.p_sys = part_system_create();
This will create a new particle system and store the index in the global variable p_sys.