setParticleParams: Difference between revisions
Jump to navigation
Jump to search
(put the missing ] in the wrong place...) |
m (More fixes) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Set parameters to particle source. Array is in format [[ParticleArray]]. | | Set parameters to particle source. Array is in format [[ParticleArray]]. <br> | ||
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: | 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: | ||
Line 13: | Line 13: | ||
[ | [ | ||
/* [[String]] or [[Array]] - If string then the name of the particleShape. And following default values are used: | /* [[String]] or [[Array]] - If string then the name of the particleShape. And following default values are used: | ||
particleFSNtieth {{=}} 1 | |||
particleFSIndex {{=}} 0 | |||
particleFSFrameCount {{=}} 1 | |||
particleFSLoop {{=}} true | |||
*/ | */ | ||
[ | [ | ||
Line 29: | Line 29: | ||
timerPeriod, /*[[Number]]*/ | timerPeriod, /*[[Number]]*/ | ||
lifeTime, /*[[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.*/ | 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.*/ | moveVelocity, /*3D [[Array]] of numbers.*/ | ||
rotationVelocity, /*[[Number]]*/ | rotationVelocity, /*[[Number]]*/ | ||
Line 46: | Line 47: | ||
onSurface, /*Optional [[Boolean]]*/ | onSurface, /*Optional [[Boolean]]*/ | ||
bounceOnSurface, /*Optional [[Number]]*/ | bounceOnSurface, /*Optional [[Number]]*/ | ||
emissiveColor /*Optional [[Array]] of [[ | emissiveColor /*Optional [[Array]] of [[Array]] of RGBA [[Number]]s*/ | ||
];</code>|= Description | ];</code>|= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ |
Revision as of 12:47, 6 November 2017
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 = true */ [ particleShape, /*String*/ particleFSNtieth, /*Number*/ particleFSIndex, /*Number*/ particleFSFrameCount, /*Number*/ particleFSLoop /*Optional - Boolean. Default: true*/ ], 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*/ ];
- Groups:
- Uncategorised
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