setParticleClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <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


| arma3 |Game name=
| arma3


|0.50|Game version=
|0.50


|arg= global |Multiplayer Arguments=
|arg= global
|eff= local |Multiplayer Effects=
|eff= local


|gr1= Particles |GROUP1=
|gr1= Particles


| Sets particle source parameters using existing particle config from <tt>CfgCloudlets</tt> class. Use [[setParticleParams]] subsequently if you need to overwrite some values.
| Sets particle source parameters using existing particle config from <tt>CfgCloudlets</tt> class. Use [[setParticleParams]] subsequently if you need to overwrite some values.
{{Important | If <tt>CfgCloudlets</tt> class contains [[Simple_Expression | simple expressions]], they will not be evaluated by this command, which might make the whole class unusable in script.}} |DESCRIPTION=
{{Important | If <tt>CfgCloudlets</tt> class contains [[Simple_Expression | simple expressions]], they will not be evaluated by this command, which might make the whole class unusable in script.}}


| source '''setParticleClass''' className |SYNTAX=
| source '''setParticleClass''' className


|p1= source: [[Object]] - particle source |PARAMETER1=
|p1= source: [[Object]] - particle source


|p2= className: [[String]] - CfgCloudlets class |PARAMETER2=
|p2= className: [[String]] - CfgCloudlets class


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




Line 25: Line 25:
_source01 [[setParticleClass]] "ObjectDestructionFire1Smallx";
_source01 [[setParticleClass]] "ObjectDestructionFire1Smallx";
_source01 [[attachTo]] [_object,[0,0,0]];
_source01 [[attachTo]] [_object,[0,0,0]];
</code>|EXAMPLE1=
</code>




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


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 12:12, 18 January 2021

Hover & click on the images for description

Description

Description:
Sets particle source parameters using existing particle config from CfgCloudlets class. Use setParticleParams subsequently if you need to overwrite some values.
If CfgCloudlets class contains simple expressions, they will not be evaluated by this command, which might make the whole class unusable in script.
Groups:
Particles

Syntax

Syntax:
source setParticleClass className
Parameters:
source: Object - particle source
className: String - CfgCloudlets class
Return Value:
Nothing

Examples

Example 1:
_source01 = "#particlesource" createVehicleLocal _pos01; _source01 setParticleClass "ObjectDestructionFire1Smallx"; _source01 attachTo [_object,[0,0,0]];

Additional Information

See also:
Arma 3 Particle EffectsParticleArraysetParticleParamssetParticleRandomsetParticleCirclesetParticleFiresetDropIntervaldrop

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 June 28, 2015 - 21:17 (UTC)
Waffle SS.
This can be very useful for getting features that can't normally be added with commands, such as AI view blocking and particles that can only be above/underwater.