setParticleCircle

From Bohemia Interactive Community
Revision as of 02:52, 11 October 2025 by Pabstmirror (talk | contribs) (fix syntax)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Hover & click on the images for description

Description

Description:
Updates particle source, creates particles in circle with given radius. Velocity is transformed and added to total velocity. The random particle positioning is calculated in relation to the nearest surface. Since Arma 3 2.22, this could be overridden (will also override onSurface = true).
Groups:
Particles

Syntax

Syntax:
particleSource setParticleCircle [circleRadius, circleVelocity, ignoreSurfaces]
Parameters:
particleSource: Object
circleRadius: Number - the radius (x,y plain) in which particles are generated
circleVelocity: Array of Numbers in format [X, Y, Z] - direction and speed of particles movement
since Arma 3 logo black.png 2.22
ignoreSurfaces: Boolean - (Optional) true to calculate particle position relative to the source position. Default: false
Return Value:
Nothing

Examples

Example 1:
_myParticleSource setParticleCircle [3, [0,0,5]];
Example 2:
_myParticleSource setParticleCircle [3, [0,0,5], true];

Additional Information

See also:
setParticleParams setParticleRandom ParticleTemplates setParticleClass particlesQuality setParticleFire

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note