triggerAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "‎" to "")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game=
|game1= arma3
|version1= 1.92


|1.92|Game Version =(number surrounded by NO SPACES)
|arg= local


|arg= |Multiplayer Arguments =("local" or "global")
|gr1= Object Manipulation


|eff=  |Multiplayer Effects =("local" or "global")
|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.


|exec= |Multiplayer Execution =("server" or empty)
|s1= [[triggerAmmo]] munition
____________________________________________________________________________________________
 
| 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=


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


| Nothing |Return Value=
|r1= [[Nothing]]
____________________________________________________________________________________________
 
|x1= <code>[[triggerAmmo]] bomb1</code> |Example 1=
____________________________________________________________________________________________


|mp= - |Multiplayer Behaviour=
|x1= <sqf>triggerAmmo bomb1;</sqf>


| |See Also=
|seealso= [[getShotParents]] [[Arma 3: Event Handlers#Fired|"Fired" Event Handler]]
}}
}}
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- For example:
<dd class="notedate">Posted on Month Day, Year - Time (UTC)</dd>
<dt class="note">'''[[User:User Name|User Name]]'''</dt>
<dd class="note">This is an example note. It is true and verifiable, and contains a little code snippet.
<code>[[if]] ([[_this]] == anExample) [[then]] { [[hint]] "Leave it here for others to read"; };</code></dd>
-->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>
<!-- Appropriate categories go here -->
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12: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