setParticleCircle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ")
(Add example)
Line 21: Line 21:
|gr1= Particles
|gr1= Particles


|descr= Updates particle source, creates particles in circle with given radius. Velocity is transformed and added to total velocity. Correspondence between CfgCloudlets class param names and command array of params:
|descr= Updates particle source, creates particles in circle with given radius. Velocity is transformed and added to total velocity.
<code>particleSource [[setParticleCircle]]
[
circleRadius,
circleVelocity
];</code>


|s1= particleSource [[setParticleCircle]] [radius, velocity]
|s1= particleSource [[setParticleCircle]] [circleRadius, circleVelocity]


|p1= particleSource: [[Object]]
|p1= particleSource: [[Object]]
|p2= [radius, velocity]: [[Array]]
 
|p3= radius: [[Number]]
|p2= radius: [[Number]]
|p4= velocity: [[Array]] (x,y,z)
 
|p3= velocity: [[Array]] of [[Number]] - in format [X, Y, Z]


|r1= [[Nothing]]
|r1= [[Nothing]]
|x1= <code>_myParticleSource [[setParticleCircle]] [3, [0,0,5]];</code>


|seealso= [[setParticleParams]], [[setParticleRandom]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]]
|seealso= [[setParticleParams]], [[setParticleRandom]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]]
}}
}}

Revision as of 09:24, 24 August 2021

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.
Groups:
Particles

Syntax

Syntax:
particleSource setParticleCircle [circleRadius, circleVelocity]
Parameters:
particleSource: Object
radius: Number
velocity: Array of Number - in format [X, Y, Z]
Return Value:
Nothing

Examples

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

Additional Information

See also:
setParticleParamssetParticleRandomParticleTemplatessetParticleClassparticlesQualitysetParticleFire

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