setAmmo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Command uses weapon class, not magazine class)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set how many shots the unit has left for the given magazine type.  |= Description
| Set how many shots the unit has left for the loaded magazine in the given weapon type.  |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''setAmmo''' [magazine, count] |= Syntax
| unit '''setAmmo''' [weapon, count] |= Syntax


|p1= unit: [[Object]] - Gunner or vehicle.  |= PARAMETER1  
|p1= unit: [[Object]] - Gunner or vehicle.  |= PARAMETER1  


|p2= [magazine, count]: [[Array]]  |= PARAMETER2  
|p2= [weapon, count]: [[Array]]  |= PARAMETER2  


|p3= magazine: [[String]]  |= PARAMETER3  
|p3= weapon: [[String]]  |= PARAMETER3  


|p4= count: [[Number]]  |= PARAMETER4  
|p4= count: [[Number]]  |= PARAMETER4  

Revision as of 16:31, 28 June 2013

Hover & click on the images for description

Description

Description:
Set how many shots the unit has left for the loaded magazine in the given weapon type.
Groups:
Uncategorised

Syntax

Syntax:
unit setAmmo [weapon, count]
Parameters:
unit: Object - Gunner or vehicle.
[weapon, count]: Array
weapon: String
count: Number
Return Value:
Nothing

Examples

Example 1:

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