setAmmo: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
m (Command uses weapon class, not magazine class) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Set how many shots the unit has left for the given | | Set how many shots the unit has left for the loaded magazine in the given weapon type. |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| unit '''setAmmo''' [ | | unit '''setAmmo''' [weapon, count] |= Syntax | ||
|p1= unit: [[Object]] - Gunner or vehicle. |= PARAMETER1 | |p1= unit: [[Object]] - Gunner or vehicle. |= PARAMETER1 | ||
|p2= [ | |p2= [weapon, count]: [[Array]] |= PARAMETER2 | ||
|p3= | |p3= weapon: [[String]] |= PARAMETER3 | ||
|p4= count: [[Number]] |= PARAMETER4 | |p4= count: [[Number]] |= PARAMETER4 |
Revision as of 15:31, 28 June 2013
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