setParticleClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Locality)
(note locality)
Line 7: Line 7:


|arg= global |= Arguments in MP
|arg= global |= Arguments in MP
|eff= global |= Effects in MP
|eff= local |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set parameters from existing config class. ClassName is name of the class from CfgCloudlets.  
| 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 expressions, they will not be evaluated by this command, which might make the whole class unusable in script.}} |= Description
Since version 1.11.114706 you can use [[setParticleParams]] to overwrite many values set by config class, particularity those defined in [[ParticleArray]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| source '''setParticleClass''' className |= Syntax
| source '''setParticleClass''' className |= Syntax


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


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


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

Revision as of 14:41, 3 October 2018

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:
Uncategorised

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

Notes

Bottom Section

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.