setParticleParams: 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


| Set parameters to particle source. Array is in format [[ParticleArray]]. <br>
| Set parameters to particle source. Array is in format [[ParticleArray]]. <br>
Line 51: Line 51:
emissiveColor, /*Optional [[Array]] of [[Array]] of RGBA [[Number]]s*/
emissiveColor, /*Optional [[Array]] of [[Array]] of RGBA [[Number]]s*/
vectorDir /*Optional 3D [[Array]] Vector dir. Since Arma 3 v1.92 it is possible to set the initial direction of the SpaceObject */
vectorDir /*Optional 3D [[Array]] Vector dir. Since Arma 3 v1.92 it is possible to set the initial direction of the SpaceObject */
];</code>|DESCRIPTION=
];</code>


| particleSource '''setParticleParams''' array |SYNTAX=
| particleSource '''setParticleParams''' array


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


|p2= array: [[Array]] - format [[ParticleArray]] |PARAMETER2=
|p2= array: [[Array]] - format [[ParticleArray]]


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]


|x1= see [[ParticleArray]]|EXAMPLE1=
|x1= see [[ParticleArray]]


| [[Arma 3 Particle Effects]], [[ParticleArray]], [[setParticleClass]], [[setParticleRandom]], [[setParticleCircle]], [[setParticleFire]], [[setDropInterval]], [[drop]]|SEEALSO=
| [[Arma 3 Particle Effects]], [[ParticleArray]], [[setParticleClass]], [[setParticleRandom]], [[setParticleCircle]], [[setParticleFire]], [[setDropInterval]], [[drop]]


}}
}}

Revision as of 12:10, 18 January 2021

Hover & click on the images for description

Description

Description:
Set parameters to particle source. Array is in format ParticleArray.
Since Arma 3 version 1.11.114706 you can use this command to overwrite many values set by setParticleClass, particularity those defined in ParticleArray. Correspondence between CfgCloudlets class param names and command array of params: particleSource setParticleParams [ /* String or Array - If string then the name of the particleShape. And following default values are used: particleFSNtieth = 1 particleFSIndex = 0 particleFSFrameCount = 1 particleFSLoop = 1 */ [ particleShape, /*String*/ particleFSNtieth, /*Number*/ particleFSIndex, /*Number*/ particleFSFrameCount, /*Number*/ particleFSLoop /*Optional - Number. Default: 1*/ ], animationName, /*String*/ particleType, /*String - Enum: Billboard, SpaceObject*/ timerPeriod, /*Number*/ lifeTime, /*Number*/ position, /*3D Array of numbers as relative position to particleSource or (if object at index 18 is set) object. Or (if object at index 18 is set) String as memoryPoint of object.*/ moveVelocity, /*3D Array of numbers.*/ rotationVelocity, /*Number*/ weight, /*Number*/ volume, /*Number*/ rubbing, /*Number*/ size, /*Array of Number*/ color, /*Array of Array of RGBA Numbers*/ animationSpeed, /*Array of Number*/ randomDirectionPeriod, /*Number*/ randomDirectionIntensity, /*Number*/ onTimerScript, /*String*/ beforeDestroyScript, /*String*/ this, /*Object*/ angle, /*Optional Number - Default: 0*/ onSurface, /*Optional Boolean*/ bounceOnSurface, /*Optional Number*/ emissiveColor, /*Optional Array of Array of RGBA Numbers*/ vectorDir /*Optional 3D Array Vector dir. Since Arma 3 v1.92 it is possible to set the initial direction of the SpaceObject */ ];
Groups:
Particles

Syntax

Syntax:
particleSource setParticleParams array
Parameters:
particleSource: Object
array: Array - format ParticleArray
Return Value:
Nothing

Examples

Example 1:
see ParticleArray

Additional Information

See also:
Arma 3 Particle EffectsParticleArraysetParticleClasssetParticleRandomsetParticleCirclesetParticleFiresetDropIntervaldrop

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