setParticleClass: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(53 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 0.50


|0.50|= Game version
|arg= global
____________________________________________________________________________________________
|eff= local


| Set parameters from existing config class. ClassName is name of the class from CfgCloudlets.
|gr1= Particles


Since version 1.11.114706 you can use [[setParticleParams]] to overwrite many values set by config class, particularity those defined in [[ParticleArray]]. |= Description
|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 {{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.}}


| source '''setParticleClass''' className |= Syntax
|s1= source [[setParticleClass]] className


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


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


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


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


|x1= <code>_source01 = "#particlesource" [[createVehicleLocal]] _pos01;
|seealso= [[Arma 3: Particle Effects]] [[ParticleArray]] [[setParticleParams]] [[setParticleRandom]] [[setParticleCircle]] [[setParticleFire]] [[setDropInterval]] [[drop]]
_source01 [[setParticleClass]] "ObjectDestructionFire1Smallx";
}}
_source01 [[attachTo]] [_object,[0,0,0]];
</code>|= EXAMPLE1


____________________________________________________________________________________________
<dl class="command_description">


| [[Arma 3 Particle Effects]], [[ParticleArray]], [[setParticleParams]], [[setParticleRandom]], [[setParticleCircle]], [[setParticleFire]], [[setDropInterval]], [[drop]] |= SEEALSO
<dt></dt>
<dd class="notedate">Posted on 2015-06-28 - 21:17 (UTC)</dd>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dd class="note">
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.
</dd>


|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:34, 3 September 2024

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.