setParticleRandom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
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|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.00|Game version=
|1.00


|arg= global |Multiplayer Arguments=
|arg= global
|eff= local |Multiplayer Effects=
|eff= local


|gr1= Particles |GROUP1=
|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> |DESCRIPTION=
];</code>


| particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] |SYNTAX=
| particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface]


|p1= particleSource: [[Object]] |PARAMETER1=
|p1= particleSource: [[Object]]


|p2= lifeTime: [[Number]] |PARAMETER2=
|p2= lifeTime: [[Number]]


|p3= position: [[Array]] in format [randomX, randomY, randomZ] |PARAMETER3=
|p3= position: [[Array]] in format [randomX, randomY, randomZ]


|p4= moveVelocity: [[Array]] in format [randomX, randomY, randomZ] |PARAMETER4=
|p4= moveVelocity: [[Array]] in format [randomX, randomY, randomZ]


|p5= rotationVelocity: [[Number]] |PARAMETER5=
|p5= rotationVelocity: [[Number]]


|p6= size: [[Number]] |PARAMETER6=
|p6= size: [[Number]]


|p7= color: [[Color|Color (RGBA)]] |PARAMETER7=
|p7= color: [[Color|Color (RGBA)]]


|p8= directionPeriod: [[Number]] |PARAMETER8=
|p8= directionPeriod: [[Number]]


|p9= directionIntensity: [[Number]] |PARAMETER9=
|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]] |RETURNVALUE=
| [[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]] |SEEALSO=
| [[ParticleArray]], [[setParticleCircle]], [[setParticleParams]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]]
}}
}}



Revision as of 12:10, 18 January 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

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.