setParticleRandom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=0-9]{12})" to "|$1=$2 |descr=$3")
m (Text replacement - "\| *ofpe * * *\| *([0-1]\.[0-9]{2}) * \|game2" to "|game1= ofpe |version1= $1 |game2")
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpe
|game1= ofpe
| 1.00
|version1= 1.00


|game2= arma1
|game2= arma1

Revision as of 01:28, 14 June 2021

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 in format [randomX, randomY, randomZ]
moveVelocity: Array in format [randomX, randomY, randomZ]
rotationVelocity: Number
size: Number
color: Color (RGBA)
directionPeriod: Number
directionIntensity: Number
angle: Number (Optional)
bounceOnSurface: Number (Optional) Template:Since
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:
ParticleArraysetParticleCirclesetParticleParamsParticleTemplatessetParticleClassparticlesQualitysetParticleFire

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 July 03, 2013 - 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.