setParticleFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |1.08|= Game version ____________________...")
 
No edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set fire parameters to particle effect.  |= Description
| Set fire parameters to particle effect.
 
Note: You need to create emitter at first. Basic parameters of particle effect must be defined too. You can use script commands [[setParticleClass]] or [[setParticleParams]] to do so. See example.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 21: Line 23:




|x1= <code>
|x1= <code>_emitter = "#particlesource" createVehicleLocal (getPos player);
_emitter setParticleClass "MediumSmoke";
_emitter setParticleFire [0.3,1.0,0.1];
</code>|= EXAMPLE1  
</code>|= EXAMPLE1  



Revision as of 13:08, 4 December 2013

Hover & click on the images for description

Description

Description:
Set fire parameters to particle effect. Note: You need to create emitter at first. Basic parameters of particle effect must be defined too. You can use script commands setParticleClass or setParticleParams to do so. See example.
Groups:
Uncategorised

Syntax

Syntax:
source setParticleFire [coreIntensity, coreDistance, damageTime]
Parameters:
source: Object
[coreIntensity, coreDistance, damageTime]: Array
coreIntensity: Number - damage in the center of fire
coreDistance: Number - how far can unit get damage
damageTime: Number - how often is unit getting damage
Return Value:
Nothing

Examples

Example 1:
_emitter = "#particlesource" createVehicleLocal (getPos player); _emitter setParticleClass "MediumSmoke"; _emitter setParticleFire [0.3,1.0,0.1];

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

Notes

Bottom Section