setParticleCircle: Difference between revisions

From Bohemia Interactive Community
No edit summary
m (fix syntax)
 
Line 31: Line 31:
|p3= circleVelocity: [[Array]] of [[Number]]s in format [X, Y, Z] - direction and speed of particles movement
|p3= circleVelocity: [[Array]] of [[Number]]s in format [X, Y, Z] - direction and speed of particles movement


|p3= ignoreSurfaces: [[Boolean]] (Optional) - [[true]] to calculate particle position relative to the source position. Default: [[false]]
|p4= ignoreSurfaces: [[Boolean]] - (Optional) [[true]] to calculate particle position relative to the source position. Default: [[false]]
|p3since= arma3 2.22
|p4since= arma3 2.22


|r1= [[Nothing]]
|r1= [[Nothing]]

Latest revision as of 02:52, 11 October 2025

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