setParticleFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(11 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 1.08
|version1= 1.08
|arg= global
|arg= global
|eff= local
|eff= local
Line 11: Line 12:


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:
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:
<code>particleSource [[setParticleFire]]
<sqf>
particleSource setParticleFire
[
[
coreIntensity,
coreIntensity,
coreDistance,
coreDistance,
damageTime
damageTime
];</code>
];
</sqf>


|s1= source [[setParticleFire]] [coreIntensity, coreDistance, damageTime]
|s1= source [[setParticleFire]] [coreIntensity, coreDistance, damageTime]


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


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


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


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


<dl class="command_description">
{{Note
 
|user= AgentRev
<dt></dt>
|timestamp= 20180409204400
<dd class="notedate">Posted on April 9, 2018 - 20:44 (UTC)</dd>
|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.
<dt class="note">[[User:AgentRev|AgentRev]]</dt>
}}
<dd class="note">
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.
</dd>
 
</dl>

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.