triggerAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> </dl>" to "")
m (Text replacement - "‎" to "")
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.92


|1.92
|arg= local
 
|arg=
 
|eff=
 
|serverExec=


|gr1= Object Manipulation
|gr1= Object Manipulation


| Triggers a munition such as shells, bullets, missiles, rockets and bombs (''shotSubmunition/shotShell/shotBullet/shotMissile/shotRocket'') as if it did hit. If ammo uses submunition, then creation of submunition will be triggered.
|descr= Triggers a munition such as shells, bullets, missiles, rockets, mines and bombs (''shotSubmunition/shotShell/shotBullet/shotMissile/shotRocket'') as if it did hit.
If ammo uses submunition, then creation of submunition will be triggered.


| [[triggerAmmo]] munition
|s1= [[triggerAmmo]] munition


|p1= munition: [[Object]]
|p1= munition: [[Object]]


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


|x1= <code>[[triggerAmmo]] bomb1</code>
|x1= <sqf>triggerAmmo bomb1;</sqf>


|mp=
|seealso= [[getShotParents]] [[Arma 3: Event Handlers#Fired|"Fired" Event Handler]]
 
| [[getShotParents]] [[Arma 3: Event Handlers#Fired|"Fired" Event Handler]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 11:55, 26 April 2023

Hover & click on the images for description

Description

Description:
Triggers a munition such as shells, bullets, missiles, rockets, mines and bombs (shotSubmunition/shotShell/shotBullet/shotMissile/shotRocket) as if it did hit. If ammo uses submunition, then creation of submunition will be triggered.
Groups:
Object Manipulation

Syntax

Syntax:
triggerAmmo munition
Parameters:
munition: Object
Return Value:
Nothing

Examples

Example 1:
triggerAmmo bomb1;

Additional Information

See also:
getShotParents "Fired" Event Handler

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