setParticleFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style='display:none'>Notes</h3> <dl class='command_description'> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.08|Game version=
|1.08
|arg= global |Multiplayer Arguments=
|arg= global
|eff= local |Multiplayer Effects=
|eff= local


|gr1= Particles |GROUP1=
|gr1= Particles


| Set fire parameters to particle effect.
| Set fire parameters to particle effect.
Line 17: Line 17:
coreDistance,
coreDistance,
damageTime
damageTime
];</code> |DESCRIPTION=
];</code>


| source '''setParticleFire''' [coreIntensity, coreDistance, damageTime] |SYNTAX=
| source '''setParticleFire''' [coreIntensity, coreDistance, damageTime]


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


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




Line 33: Line 33:
_emitter [[setParticleClass]] "MediumSmoke";
_emitter [[setParticleClass]] "MediumSmoke";
_emitter [[setParticleFire]] [0.3,1.0,0.1];
_emitter [[setParticleFire]] [0.3,1.0,0.1];
</code>|EXAMPLE1=
</code>




| [[Arma 3 Particle Effects]], [[ParticleArray]], [[setParticleParams]], [[setParticleRandom]], [[setParticleCircle]], [[setDropInterval]], [[drop]], [[setParticleClass]] |SEEALSO=
| [[Arma 3 Particle Effects]], [[ParticleArray]], [[setParticleParams]], [[setParticleRandom]], [[setParticleCircle]], [[setDropInterval]], [[drop]], [[setParticleClass]]


| |MPBEHAVIOUR=
|
}}
}}



Revision as of 12:11, 18 January 2021

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, 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:
Arma 3 Particle EffectsParticleArraysetParticleParamssetParticleRandomsetParticleCirclesetDropIntervaldropsetParticleClass

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 April 9, 2018 - 20:44 (UTC)
AgentRev
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.