setParticleClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])\= ([^' ]+)'''([^' ]+)'''([^ ]*) " to "|s$1= $2$3$4 ")
m (Text replacement - ">Posted on June ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-06-$1")
 
(12 intermediate revisions by the same user not shown)
Line 9: Line 9:
|gr1= Particles
|gr1= Particles


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


|s1= source [[setParticleClass]] className
|s1= source [[setParticleClass]] className
Line 20: Line 20:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>_source01 = "#particlesource" [[createVehicleLocal]] _pos01;
|x1= <sqf>_source01 = "#particlesource" createVehicleLocal _pos01;
_source01 [[setParticleClass]] "ObjectDestructionFire1Smallx";
_source01 setParticleClass "ObjectDestructionFire1Smallx";
_source01 [[attachTo]] [_object,[0,0,0]];
_source01 attachTo [_object,[0,0,0]];</sqf>
</code>


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


Line 31: Line 30:


<dt></dt>
<dt></dt>
<dd class="notedate">Posted on June 28, 2015 - 21:17 (UTC)</dd>
<dd class="notedate">Posted on 2015-06-28 - 21:17 (UTC)</dd>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dd class="note">
<dd class="note">

Latest revision as of 00:08, 14 May 2023

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 Effects ParticleArray setParticleParams 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
Posted on 2015-06-28 - 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.