Arma 3 Scripting

setParticleClass

  • Global argument
  • Local effect
  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

Sets particle source parameters using existing particle config from CfgCloudlets class. Use setParticleParams subsequently if you need to overwrite some values.

Important

If CfgCloudlets class contains simple expressions, they will not be evaluated by this command, which might make the whole class unusable in script.

Syntax

source setParticleClass className

Parameters:

Returns: Nothing

Examples

Example 1

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

See also

Arma 3: Particle Effects · ParticleArray · setParticleParams · setParticleRandom · setParticleCircle · setParticleFire · setDropInterval · drop

Community notes

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.