{"name":"setParticleRandom","title":"setParticleRandom","type":"command","url":"https://community.bistudio.com/wiki/setParticleRandom","revid":378785,"updated":"2026-06-05T12:18:37Z","groups":["Particles"],"status":"ok","games":{"ofpe":"1.00","arma1":"1.00","arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"ofpe 1.00","arma3_since":"0.50","locality":{"argument":"global","effect":"local"},"description":"Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params:\n\n```sqf\nparticleSource setParticleRandom\n[\n    lifeTimeVar,\n    positionVar,\n    moveVelocityVar,\n    rotationVelocityVar,\n    sizeVar,\n    colorVar,\n    randomDirectionPeriodVar,\n    randomDirectionIntensityVar,\n    angleVar,\n    bounceOnSurfaceVar\n];\n```","syntaxes":[{"syntax":"particleSource setParticleRandom [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface]","params":[{"name":"particleSource","type":"Object","type_expr":"Object"},{"name":"lifeTime","type":"Number","type_expr":"Number"},{"name":"position","type":"Array of Number","description":"in format [randomX, randomY, randomZ]","type_expr":"Array<Number>"},{"name":"moveVelocity","type":"Array of Number","description":"in format [randomX, randomY, randomZ]","type_expr":"Array<Number>"},{"name":"rotationVelocity","type":"Number","type_expr":"Number"},{"name":"size","type":"Number","type_expr":"Number"},{"name":"color","type":"Color (RGBA)","type_expr":"Color"},{"name":"directionPeriod","type":"Number","type_expr":"Number"},{"name":"directionIntensity","type":"Number","type_expr":"Number"},{"name":"angle","type":"Number","optional":true,"type_expr":"Number","text":"angle: Number - (Optional)"},{"name":"bounceOnSurface","type":"Number","optional":true,"type_expr":"Number","since":"arma3 0.74","text":"bounceOnSurface: Number - (Optional)"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"particleSource"},"right":{"text":"[lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface]"}}],"examples":[{"code":["_particleSource setParticleRandom [0, [0.1, 0.1, 0.1], [0, 0, 0.5], 0, 0.1, [0, 0, 0, 0], 0, 0, 45, 0];"]}],"see_also":["ParticleArray","setParticleCircle","setParticleParams","ParticleTemplates","setParticleClass","particlesQuality","setParticleFire"],"notes":[{"user":"DarkDruid","date":"2013-07-03T15:35:00Z","text":"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."}]}