setParticleParams: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (description) |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(100 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| | |game1= arma1 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2 | ||
|version2= 1.00 | |||
| Set parameters to particle source. Array is in format [[ParticleArray]]. | |game3= arma2oa | ||
|version3= 1.50 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|arg= global | |||
|eff= local | |||
|gr1= Particles | |||
|descr= 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: | ||
< | <sqf> | ||
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, | particleShape, /* String */ | ||
particleFSNtieth, | particleFSNtieth, /* Number */ | ||
particleFSIndex, | particleFSIndex, /* Number */ | ||
particleFSFrameCount, | particleFSFrameCount, /* Number */ | ||
particleFSLoop | particleFSLoop /* Optional - Number. Default: 1 */ | ||
], | ], | ||
animationName, | animationName, /* String */ | ||
particleType, | particleType, /* String - Enum: Billboard, SpaceObject */ | ||
timerPeriod, | timerPeriod, /* Number */ | ||
lifeTime, | lifeTime, /* Number */ | ||
position | pos3D, /* 3D Array of numbers as relative position to particleSource or (if object at index 18 is set) object. | ||
moveVelocity, | Or (if object at index 18 is set) String as memoryPoint of object. */ | ||
rotationVelocity, | moveVelocity, /* 3D Array of numbers. */ | ||
weight, | rotationVelocity, /* Number */ | ||
volume, | weight, /* Number */ | ||
rubbing, | volume, /* Number */ | ||
rubbing, /* Number */ | |||
color, | sizeOverLifetime, /* Array of Numbers */ | ||
animationSpeed, | color, /* Array of Array of RGBA Numbers */ | ||
randomDirectionPeriod, | animationSpeed, /* Array of Number */ | ||
randomDirectionIntensity, | randomDirectionPeriod, /* Number */ | ||
onTimerScript, | randomDirectionIntensity, /* Number */ | ||
beforeDestroyScript, | onTimerScript, /* String */ | ||
beforeDestroyScript, /* String */ | |||
angle, | obj, /* Object */ | ||
onSurface, | angle, /* Optional Number - Default: 0 */ | ||
bounceOnSurface, | onSurface, /* Optional Boolean */ | ||
emissiveColor | bounceOnSurface, /* Optional Number */ | ||
];</ | emissiveColor, /* Optional Array of Array of RGBA Numbers */ | ||
vectorDirOrVectorDirAndUp /* Optional vector dir or [vectorDir, vectorUp] | |||
Since Arma 3 v1.92 it is possible to set the initial direction of the SpaceObject | |||
Since Arma 3 v2.12 it is possible to use a [vectorDir, vectorUp] array */ | |||
]; | |||
</sqf> | |||
| particleSource | |s1= particleSource [[setParticleParams]] array | ||
|p1= particleSource: [[Object]] | |p1= particleSource: [[Object]] | ||
|p2= array: [[Array]] - format [[ParticleArray]] | |p2= array: [[Array]] - format [[ParticleArray]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= see [[ParticleArray]] | |x1= see [[ParticleArray]] | ||
|seealso= [[Arma 3: Particle Effects]] [[ParticleArray]] [[setParticleClass]] [[setParticleRandom]] [[setParticleCircle]] [[setParticleFire]] [[setDropInterval]] [[drop]] | |||
}} | }} | ||
Latest revision as of 19:42, 3 September 2024
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 */ pos3D, /* 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 */ sizeOverLifetime, /* Array of Numbers */ color, /* Array of Array of RGBA Numbers */ animationSpeed, /* Array of Number */ randomDirectionPeriod, /* Number */ randomDirectionIntensity, /* Number */ onTimerScript, /* String */ beforeDestroyScript, /* String */ obj, /* Object */ angle, /* Optional Number - Default: 0 */ onSurface, /* Optional Boolean */ bounceOnSurface, /* Optional Number */ emissiveColor, /* Optional Array of Array of RGBA Numbers */ vectorDirOrVectorDirAndUp /* Optional vector dir or [vectorDir, vectorUp] Since Arma 3 v1.92 it is possible to set the initial direction of the SpaceObject Since Arma 3 v2.12 it is possible to use a [vectorDir, vectorUp] array */ ]; - 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 Effects ParticleArray setParticleClass setParticleRandom setParticleCircle setParticleFire setDropInterval drop
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New 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