setParticleRandom: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "Category: Particle System" to "") |
Lou Montana (talk | contribs) (Fix parameters) |
||
Line 28: | Line 28: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| particleSource | | particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] |SYNTAX= | ||
|p1= particleSource: [[Object]] |PARAMETER1= | |p1= particleSource: [[Object]] |PARAMETER1= | ||
|p2= [ | |p2= lifeTime: [[Number]] |PARAMETER2= | ||
|p3= position: [[Array]] in format [randomX, randomY, randomZ] |PARAMETER3= | |||
|p4= moveVelocity: [[Array]] in format [randomX, randomY, randomZ] |PARAMETER4= | |||
|p5= rotationVelocity: [[Number]] |PARAMETER5= | |||
|p6= size: [[Number]] |PARAMETER6= | |||
|p7= color: [[Color|Color (RGBA)]] |PARAMETER7= | |||
|p8= directionPeriod: [[Number]] |PARAMETER8= | |||
|p9= directionIntensity: [[Number]] |PARAMETER9= | |||
|p10= angle: [[Number]] (Optional) |PARAMETER10= | |||
|p11= bounceOnSurface: [[Number]] (Optional) {{since|arma3|0.74|y}} |PARAMETER11= | |||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|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]] |SEEALSO= | | [[ParticleArray]], [[setParticleCircle]], [[setParticleParams]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]] |SEEALSO= | ||
}} | }} | ||
Line 55: | Line 72: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Scripting Commands OFP Elite |{{uc:{{PAGENAME}}}}]] | |||
[[Category:Scripting Commands OFP Elite | | [[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Armed Assault| | |||
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]] |
Revision as of 14:37, 16 October 2020
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.
Bottom Section
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Particles
- Scripting Commands: Local Effect
- Scripting Commands OFP Elite
- Scripting Commands Armed Assault
- Scripting Commands Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters