setParticleClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\{\{( *)Important( *)\|" to "{{$1Feature$2|$2important$2|")
Line 11: Line 11:


| 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.}}
{{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.}}


| source '''setParticleClass''' className
| source '''setParticleClass''' className

Revision as of 03:12, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Particles

Syntax

Syntax:
Syntax needed
Parameters:
source: Object - particle source
className: String - CfgCloudlets class
Return Value:
Return value needed

Examples

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

Additional Information

See also:
See also needed

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.