setParticleRandom: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(New parameter added.)
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| particleSource '''setParticleRandom''' [lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}] |= Syntax
| particleSource '''setParticleRandom''' [lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}, bounceOnSurface] |= Syntax


|p1= particleSource: [[Object]] |= Parameter 1
|p1= particleSource: [[Object]] |= Parameter 1


|p2= [lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}]: [[Array]] |= Parameter 2
|p2= [lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}, bounceOnSurface]: [[Array]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
Line 28: Line 28:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<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 -->
<!-- Note Section END -->

Revision as of 14:10, 20 July 2013

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Set randomization of particle source parameters.
Groups:
Uncategorised

Syntax

Syntax:
particleSource setParticleRandom [lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}, bounceOnSurface]
Parameters:
particleSource: Object
[lifeTime, position, moveVelocity, rotationVelocity, size, color, randomDirectionPeriod, randomDirectionIntensity, {angle}, bounceOnSurface]: Array
Return Value:
Nothing

Examples

Example 1:
_PS setParticleRandom [0, [0.1, 0.1, 0.1], [0, 0, 0.5], 0, 0.1, [0, 0, 0, 0], 0, 0]

Additional Information

See also:
ParticleArraysetParticleCirclesetParticleParams

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