triggerAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game=
| arma3 |Game=
Line 13: Line 12:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| 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. |Description=
| 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. |Description=
____________________________________________________________________________________________


| [[triggerAmmo]] munition |Syntax=
| [[triggerAmmo]] munition |Syntax=
Line 23: Line 20:


| [[Nothing]] |Return Value=
| [[Nothing]] |Return Value=
____________________________________________________________________________________________


|x1= <code>[[triggerAmmo]] bomb1</code> |Example 1=
|x1= <code>[[triggerAmmo]] bomb1</code> |Example 1=
____________________________________________________________________________________________


|mp= |Multiplayer Behaviour=
|mp= |Multiplayer Behaviour=

Revision as of 05:00, 17 January 2021

Hover & click on the images for description

Description

Description:
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.
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

Bottom Section