setParticleFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (<code> tidy)
m (Some wiki formatting)
 
(56 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.08


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


| Set fire parameters to particle effect.
|gr1= Particles


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
|descr= Set fire parameters to particle effect.
____________________________________________________________________________________________


| source '''setParticleFire''' [coreIntensity, coreDistance, damageTime] |= Syntax
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). Correspondence between CfgCloudlets class param names and command array of params:
<sqf>
particleSource setParticleFire
[
coreIntensity,
coreDistance,
damageTime
];
</sqf>


|p1= source: [[Object]] |= PARAMETER1
|s1= source [[setParticleFire]] [coreIntensity, coreDistance, damageTime]
|p2= [coreIntensity, coreDistance, damageTime]: [[Array]]  |= PARAMETER2
|p3= coreIntensity: [[Number]] - damage in the center of fire |= PARAMETER3
|p4= coreDistance: [[Number]] - how far can unit get damage |= PARAMETER4
|p5= damageTime: [[Number]] - how often is unit getting damage |= PARAMETER5


| [[Nothing]] |= RETURNVALUE
|p1= source: [[Object]]


|p2= coreIntensity: [[Number]] - damage in the center of fire


|x1= <code>_emitter = "#particlesource" [[createVehicleLocal]] ([[getPos]] [[player]]);
|p3= coreDistance: [[Number]] - how far can unit get damage
_emitter [[setParticleClass]] "MediumSmoke";
_emitter [[setParticleFire]] [0.3,1.0,0.1];
</code>|= EXAMPLE1


____________________________________________________________________________________________
|p4= damageTime: [[Number]] - how often is unit getting damage


| |= SEEALSO
|r1= [[Nothing]]


| |= MPBEHAVIOUR
|x1= <sqf>
____________________________________________________________________________________________
_emitter = "#particlesource" createVehicleLocal (getPos player);
_emitter setParticleClass "MediumSmoke";
_emitter setParticleFire [0.3,1.0,0.1];
</sqf>
 
|seealso= [[Arma 3: Particle Effects]] [[ParticleArray]] [[setParticleParams]] [[setParticleRandom]] [[setParticleCircle]] [[setDropInterval]] [[drop]] [[setParticleClass]]
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= AgentRev
<!-- Note Section BEGIN -->
|timestamp= 20180409204400
 
|text= Using this command on a dedicated server or headless client seems to have no effect on [[Multiplayer Scripting#Locality|local]] AI units, they will walk thru the fire unscathed.
<!-- Note Section END -->
}}
</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 15:55, 15 August 2022

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). Correspondence between CfgCloudlets class param names and command array of params:
particleSource setParticleFire [ coreIntensity, coreDistance, damageTime ];
Groups:
Particles

Syntax

Syntax:
source setParticleFire [coreIntensity, coreDistance, damageTime]
Parameters:
source: Object
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:
Arma 3: Particle Effects ParticleArray setParticleParams setParticleRandom setParticleCircle setDropInterval drop setParticleClass

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
AgentRev - c
Posted on Apr 09, 2018 - 20:44 (UTC)
Using this command on a dedicated server or headless client seems to have no effect on local AI units, they will walk thru the fire unscathed.