setParticleRandom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - ">Posted on July ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-07-$1")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2")
 
(One intermediate revision by one other user not shown)
Line 45: Line 45:
|p2= lifeTime: [[Number]]
|p2= lifeTime: [[Number]]


|p3= position: [[Array]] of [[Number]] - In format [randomX, randomY, randomZ]
|p3= position: [[Array]] of [[Number]] - in format [randomX, randomY, randomZ]


|p4= moveVelocity: [[Array]] of [[Number]] - In format [randomX, randomY, randomZ]
|p4= moveVelocity: [[Array]] of [[Number]] - in format [randomX, randomY, randomZ]


|p5= rotationVelocity: [[Number]]
|p5= rotationVelocity: [[Number]]
Line 59: Line 59:
|p9= directionIntensity: [[Number]]
|p9= directionIntensity: [[Number]]


|p10= angle: [[Number]] (Optional)
|p10= angle: [[Number]] - (Optional)


|p11= bounceOnSurface: [[Number]] (Optional)
|p11= bounceOnSurface: [[Number]] - (Optional)
|p11since= arma3 0.74
|p11since= arma3 0.74



Latest revision as of 16:33, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params:
particleSource setParticleRandom [ lifeTimeVar, positionVar, moveVelocityVar, rotationVelocityVar, sizeVar, colorVar, randomDirectionPeriodVar, randomDirectionIntensityVar, angleVar, bounceOnSurfaceVar ];
Groups:
Particles

Syntax

Syntax:
particleSource setParticleRandom [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface]
Parameters:
particleSource: Object
lifeTime: Number
position: Array of Number - in format [randomX, randomY, randomZ]
moveVelocity: Array of Number - in format [randomX, randomY, randomZ]
rotationVelocity: Number
size: Number
color: Color (RGBA)
directionPeriod: Number
directionIntensity: Number
angle: Number - (Optional)
since Arma 3 logo black.png0.74
bounceOnSurface: Number - (Optional)
Return Value:
Nothing

Examples

Example 1:
_particleSource setParticleRandom [0, [0.1, 0.1, 0.1], [0, 0, 0.5], 0, 0.1, [0, 0, 0, 0], 0, 0, 45, 0];

Additional Information

See also:
ParticleArray setParticleCircle setParticleParams 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
Posted on 2013-07-03 - 15:35
Druid
Support of parameter bounceOnSurface (Number - 0-1) is in the game since Arma 3 version 0.74. It's variability in speed's loosing in collision with ground. Requires collisions with ground enabled by script command setParticleParams.