getMagazineCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\] +\[\[([a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1 $2 $3 $4 $5;</sqf>") |
||
Line 26: | Line 26: | ||
|x1= <code>_content = [[getMagazineCargo]] carName;</code> | |x1= <code>_content = [[getMagazineCargo]] carName;</code> | ||
|x2= <code>_content = [[getMagazineCargo]] ammoBoxName;</code> | |x2= <code>_content = [[getMagazineCargo]] ammoBoxName;</code> | ||
|x3= < | |x3= <sqf>hint str getMagazineCargo unitBackpack cursorTarget;</sqf> | ||
|seealso= [[magazinesAmmoCargo]] [[magazineCargo]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[clearMagazineCargo]] [[clearMagazineCargoGlobal]] | |seealso= [[magazinesAmmoCargo]] [[magazineCargo]] [[addMagazineCargo]] [[addMagazineCargoGlobal]] [[clearMagazineCargo]] [[clearMagazineCargoGlobal]] | ||
}} | }} |
Revision as of 14:11, 5 May 2022
Description
- Description:
- Returns all magazines types and count from the cargo space
- Groups:
- Vehicle InventoryContainers
Syntax
- Syntax:
- getMagazineCargo object
- Parameters:
- object: Object - Vehicle or ammo box
- Return Value:
- Array of arrays. [["5MagsType1","10MagsType2"],[5,10]]
Examples
- Example 1:
_content = getMagazineCargo carName;
- Example 2:
_content = getMagazineCargo ammoBoxName;
- Example 3:
Additional Information
- See also:
- magazinesAmmoCargo magazineCargo addMagazineCargo addMagazineCargoGlobal clearMagazineCargo clearMagazineCargoGlobal
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