setParticleRandom: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(10 intermediate revisions by 3 users not shown) | |||
Line 25: | Line 25: | ||
|descr= Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params: | |descr= Sets randomization of particle source parameters. Correspondence between CfgCloudlets class param names and command array of params: | ||
< | <sqf> | ||
particleSource setParticleRandom | |||
[ | [ | ||
lifeTimeVar, | lifeTimeVar, | ||
Line 37: | Line 38: | ||
angleVar, | angleVar, | ||
bounceOnSurfaceVar | bounceOnSurfaceVar | ||
];</ | ]; | ||
</sqf> | |||
|s1= particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] | |s1= particleSource [[setParticleRandom]] [lifeTime, position, moveVelocity, rotationVelocity, size, color, directionPeriod, directionIntensity, angle, bounceOnSurface] | ||
Line 45: | Line 47: | ||
|p2= lifeTime: [[Number]] | |p2= lifeTime: [[Number]] | ||
|p3= position: [[Array]] of [[Number]] - | |p3= position: [[Array]] of [[Number]] - in format [randomX, randomY, randomZ] | ||
|p4= moveVelocity: [[Array]] of [[Number]] - | |p4= moveVelocity: [[Array]] of [[Number]] - in format [randomX, randomY, randomZ] | ||
|p5= rotationVelocity: [[Number]] | |p5= rotationVelocity: [[Number]] | ||
Line 59: | Line 61: | ||
|p9= directionIntensity: [[Number]] | |p9= directionIntensity: [[Number]] | ||
|p10= angle: [[Number]] (Optional) | |p10= angle: [[Number]] - (Optional) | ||
|p11= bounceOnSurface: [[Number]] (Optional) | |p11= bounceOnSurface: [[Number]] - (Optional) | ||
|p11since= arma3 0.74 | |p11since= arma3 0.74 | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |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> | ||
|seealso= [[ParticleArray]] [[setParticleCircle]] [[setParticleParams]] [[ParticleTemplates]] | |seealso= [[ParticleArray]] [[setParticleCircle]] [[setParticleParams]] [[ParticleTemplates]] [[setParticleClass]] [[particlesQuality]] [[setParticleFire]] | ||
}} | }} | ||
Line 74: | Line 76: | ||
<dt><dt> | <dt><dt> | ||
<dd class="notedate">Posted on | <dd class="notedate">Posted on 2013-07-03 - 15:35</dd> | ||
<dt class="note">[[User:Druid|Druid]]</dt> | <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="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> | ||
</dl> | </dl> |
Latest revision as of 11:34, 3 September 2024
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 0.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.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint: Elite version 1.00
- Operation Flashpoint: Elite: New Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Particles
- Scripting Commands: Local Effect