drop: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Return value since 2.18)
 
(72 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|D]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97|D]]
[[Category:Scripting Commands ArmA|D]]


|game1= ofp
|version1= 1.75


<h2 style="color:#000066">'''drop ''array'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''array:''' [[Array]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Nothing]]
|game7= arma3
|version7= 0.50


'''Compatibility:'''
|eff= local


Added in version '''1.50'''
|arg= global


'''Description:'''
|gr1= Particles


Drops a particle into the scene.
|descr= Creates a particle effect.
This command is used to create smoke, fire and similar effects.
The particles are single polygons with single textures that always face the player.
They can be set to dynamically change their position, size, direction, can be set to different weights and to be more or less dependent on the wind.


'''Array''' is in format [[ParticleArray]].
|s1= [[drop]] parameters


|p1= parameters: [[Array]] format [[ParticleArray]]


'''Comments:'''
|r1= [[Nothing]], since {{GVI|arma3|2.18}} [[Object]]


Particle systems created by drop are client-side effects, that means they are affected by multiplayer locality.
|x1= <sqf>
drop ["cl_basic", "", "Billboard", 1, 1,
[-3.5 * (sin (direction xural)), -3.5 * (cos (direction xural)), 0],
[random 0.1, random 0.1, random 0.5],
1, 0.005, 0.0042, 0.7, [0.3,3],
[[0.5,0.5,0.5,0], [0.7,0.7,0.7,0.5], [0.9,0.9,0.9,0]],
[0,1,0,1,0,1],
0.2, 0.2, "", "", xural];
</sqf>


If a mission is designed for play on a dedicated server, you should consider excluding drop commands from the host for efficiency.
|seealso= [[ParticleArray]] [[setParticleCircle]] [[setParticleParams]] [[setParticleRandom]] [[ParticleTemplates]] [[setParticleClass]] [[particlesQuality]] [[setParticleFire]]
 
}}
Through thoughtful use of MP 'spoofing', drop works just as well as [[camCreate]].
 
This means you have the 'real' bullets and bombs generated on the server, while having the clients duplicate the script at the same time, only this time using harmless versions of the lethal stuff created on the server.

Latest revision as of 14:43, 3 October 2024

Hover & click on the images for description

Description

Description:
Creates a particle effect. This command is used to create smoke, fire and similar effects. The particles are single polygons with single textures that always face the player. They can be set to dynamically change their position, size, direction, can be set to different weights and to be more or less dependent on the wind.
Groups:
Particles

Syntax

Syntax:
drop parameters
Parameters:
parameters: Array format ParticleArray
Return Value:
Nothing, since Arma 3 logo black.png2.18 Object

Examples

Example 1:
drop ["cl_basic", "", "Billboard", 1, 1, [-3.5 * (sin (direction xural)), -3.5 * (cos (direction xural)), 0], [random 0.1, random 0.1, random 0.5], 1, 0.005, 0.0042, 0.7, [0.3,3], [[0.5,0.5,0.5,0], [0.7,0.7,0.7,0.5], [0.9,0.9,0.9,0]], [0,1,0,1,0,1], 0.2, 0.2, "", "", xural];

Additional Information

See also:
ParticleArray setParticleCircle setParticleParams setParticleRandom ParticleTemplates setParticleClass particlesQuality setParticleFire

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