setParticleRandom: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= global | |arg= global | ||
|eff= local | |eff= local | ||
|gr1= Particles | |gr1= Particles | ||
| Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params: | | Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params: | ||
Line 23: | Line 23: | ||
angleVar, | angleVar, | ||
bounceOnSurfaceVar | bounceOnSurfaceVar | ||
];</code> | ];</code> | ||
| particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] | | particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] | ||
|p1= particleSource: [[Object]] | |p1= particleSource: [[Object]] | ||
|p2= lifeTime: [[Number]] | |p2= lifeTime: [[Number]] | ||
|p3= position: [[Array]] in format [randomX, randomY, randomZ] | |p3= position: [[Array]] in format [randomX, randomY, randomZ] | ||
|p4= moveVelocity: [[Array]] in format [randomX, randomY, randomZ] | |p4= moveVelocity: [[Array]] in format [randomX, randomY, randomZ] | ||
|p5= rotationVelocity: [[Number]] | |p5= rotationVelocity: [[Number]] | ||
|p6= size: [[Number]] | |p6= size: [[Number]] | ||
|p7= color: [[Color|Color (RGBA)]] | |p7= color: [[Color|Color (RGBA)]] | ||
|p8= directionPeriod: [[Number]] | |p8= directionPeriod: [[Number]] | ||
|p9= directionIntensity: [[Number]] | |p9= directionIntensity: [[Number]] | ||
|p10= angle: [[Number]] (Optional) |PARAMETER10= | |p10= angle: [[Number]] (Optional) |PARAMETER10= | ||
Line 49: | Line 49: | ||
|p11= bounceOnSurface: [[Number]] (Optional) {{Since|arma3|0.74|y}} |PARAMETER11= | |p11= bounceOnSurface: [[Number]] (Optional) {{Since|arma3|0.74|y}} |PARAMETER11= | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1 = <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];</code> | |x1 = <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];</code> | ||
| [[ParticleArray]], [[setParticleCircle]], [[setParticleParams]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]] | | [[ParticleArray]], [[setParticleCircle]], [[setParticleParams]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]] | ||
}} | }} | ||
Revision as of 11:10, 18 January 2021
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
Notes
- 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Particles
- Scripting Commands: Local Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands