forceWeaponFire: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Wrong type os parameter fixed.)
Line 18: Line 18:
|p3= weapon: [[String]]  |= PARAMETER3
|p3= weapon: [[String]]  |= PARAMETER3


|p4= mode: [[Number]] |= PARAMETER4
|p4= mode: [[String]] - Possible options are "Single", "Burst" and "FullAuto". |= PARAMETER4


| [[Nothing]] |= RETURNVALUE  
| [[Nothing]] |= RETURNVALUE  




|x1= <code>soldierOne forceWeaponFire [&quot;arifle_MX_F&quot;,0]</code>|= EXAMPLE1  
|x1= <code>soldierOne forceWeaponFire [&quot;arifle_MX_F&quot;, "Single"]</code>|= EXAMPLE1  


____________________________________________________________________________________________
____________________________________________________________________________________________

Revision as of 13:10, 22 May 2013

Hover & click on the images for description

Description

Description:
The unit will be forced to fire from the given weapon.
Groups:
Uncategorised

Syntax

Syntax:
unit forceWeaponFire [weapon, mode]
Parameters:
unit: Object
[weapon, mode]: Array
weapon: String
mode: String - Possible options are "Single", "Burst" and "FullAuto".
Return Value:
Nothing

Examples

Example 1:
soldierOne forceWeaponFire ["arifle_MX_F", "Single"]

Additional Information

See also:
See also needed

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

Notes

Bottom Section