currentMagazineDetail: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 0.50 | |||
|0.50 | |||
|gr1= Unit Inventory | |gr1= Unit Inventory | ||
Line 9: | Line 8: | ||
|gr2= Vehicle Inventory | |gr2= Vehicle Inventory | ||
| Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id. | |descr= Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id. | ||
| [[currentMagazineDetail]] object | |s1= [[currentMagazineDetail]] object | ||
|p1= object: [[Object]] - unit or vehicle | |p1= object: [[Object]] - unit or vehicle | ||
| [[String]] | |r1= [[String]] | ||
|x1= < | |x1= <sqf>_currentMagazineDetail = currentMagazineDetail player; // "6.5mm 30Rnd STANAG Mag(30/30)[id:0]"</sqf> | ||
|x2= < | |x2= <sqf>_currentMagazineDetail = currentMagazineDetail Mi_48; // "30mm HE Shells(250/250)[id:21]</sqf> | ||
|x3= < | |x3= <sqf> | ||
_cmd | _cmd = currentMagazineDetail player; // "9mm 16Rnd Mag(13/16)[id/cr:10000011/0]" | ||
_cmd splitString "([ ]/:)"; // ["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"] | |||
</sqf> | |||
|seealso= [[magazinesDetail]] | |seealso= [[magazinesDetail]] [[currentMagazine]] | ||
}} | }} |
Latest revision as of 19:42, 3 September 2024
Description
- Description:
- Returns description of vehicle's currently loaded magazine, its ammo count (current/default) and its id.
- Groups:
- Unit InventoryVehicle Inventory
Syntax
- Syntax:
- currentMagazineDetail object
- Parameters:
- object: Object - unit or vehicle
- Return Value:
- String
Examples
- Example 1:
- Example 2:
- Example 3:
- _cmd = currentMagazineDetail player; // "9mm 16Rnd Mag(13/16)[id/cr:10000011/0]" _cmd splitString "([ ]/:)"; // ["9mm","16Rnd","Mag","13","16","id","cr","10000011","0"]
Additional Information
- See also:
- magazinesDetail currentMagazine
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