Skip to content

Part_attractor_create

hpgDesigns edited this page Aug 8, 2021 · 1 revision

Description

Creates a new particle attractor in the given particle system and returns the index. A particle attractor will attract particles towards it.

Parameters

Parameter Data Type Description
sys integer index of the particle system

Return Values

integer: Returns the index of the newly created particle attractor.

Example Call

// demonstrates creating a particle attractor
var attr;
attr = particle_attractor_create(sys);

NOTOC

This is number 1

Clone this wiki locally