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 - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma1 |Game name=
|game1= ofpe
|version1= 1.00


|1.00|Game version=
|game2= arma1
|version2= 1.00


|arg= global |Multiplayer Arguments=
|game3= arma2
|eff= local |Multiplayer Effects=
|version3= 1.00


|gr1= Particles |GROUP1=
|game4= arma2oa
|version4= 1.50


| Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params:
|game5= tkoh
<code>particleSource [[setParticleRandom]]
|version5= 1.00
 
|game6= arma3
|version6= 0.50
 
|arg= global
|eff= local
 
|gr1= Particles
 
|descr= Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params:
<sqf>
particleSource setParticleRandom
[
[
lifeTimeVar,
lifeTimeVar,
Line 23: Line 38:
angleVar,
angleVar,
bounceOnSurfaceVar
bounceOnSurfaceVar
];</code> |DESCRIPTION=
];
</sqf>


| particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] |SYNTAX=
|s1= 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]] of [[Number]] - in format [randomX, randomY, randomZ]


|p4= moveVelocity: [[Array]] in format [randomX, randomY, randomZ] |PARAMETER4=
|p4= moveVelocity: [[Array]] of [[Number]] - 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)


|p11= bounceOnSurface: [[Number]] (Optional) {{Since|arma3|0.74|y}} |PARAMETER11=
|p11= bounceOnSurface: [[Number]] - (Optional)
|p11since= arma3 0.74


| [[Nothing]] |RETURNVALUE=
|r1= [[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= <sqf>_particleSource setParticleRandom [0, [0.1, 0.1, 0.1], [0, 0, 0.5], 0, 0.1, [0, 0, 0, 0], 0, 0, 45, 0];</sqf>


| [[ParticleArray]], [[setParticleCircle]], [[setParticleParams]], [[ParticleTemplates]], [[setParticleClass]], [[particlesQuality]], [[setParticleFire]] |SEEALSO=
|seealso= [[ParticleArray]] [[setParticleCircle]] [[setParticleParams]] [[ParticleTemplates]] [[setParticleClass]] [[particlesQuality]] [[setParticleFire]]
}}
}}


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->


<dt><dt>
<dd class="notedate">Posted on 2013-07-03 - 15:35</dd>
<dt class="note">[[User:Druid|Druid]]</dt>
<dd class="note">Support of parameter <i>bounceOnSurface</i> ([[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]].<br>


<dd class="notedate">Posted on July 03, 2013 - 15:35
<dt class="note">[[User:Druid|Druid]]<dd class="note">Support of parameter <i>bounceOnSurface</i> ([[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]].<br>
<!-- Note Section END -->
</dl>
</dl>
{{GameCategory|ofpe|Scripting Commands}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 11:34, 3 September 2024

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 of Number - in format [randomX, randomY, randomZ]
moveVelocity: Array of Number - in format [randomX, randomY, randomZ]
rotationVelocity: Number
size: Number
color: Color (RGBA)
directionPeriod: Number
directionIntensity: Number
angle: Number - (Optional)
since Arma 3 logo black.png0.74
bounceOnSurface: Number - (Optional)
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:
ParticleArray setParticleCircle setParticleParams ParticleTemplates setParticleClass particlesQuality setParticleFire

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 2013-07-03 - 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.