weaponsItemsCargo: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 10: | Line 9: | ||
|gr2= Vehicle Inventory |GROUP2= | |gr2= Vehicle Inventory |GROUP2= | ||
|Returns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in [[weaponsItems]] format. If weapon has no magazine, an empty array [] is returned instead of magazine info. If the argument is a vehicle with weapons, vehicles cargo is searched, unlike with [[weaponsItems]] command, which will return vehicle's weapons instead. | |Returns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in [[weaponsItems]] format. If weapon has no magazine, an empty array [] is returned instead of magazine info. If the argument is a vehicle with weapons, vehicles cargo is searched, unlike with [[weaponsItems]] command, which will return vehicle's weapons instead. | ||
* Since Arma 3 v1.95.145811 the returned array always contains secondary muzzle magazine info and consistent with [[getUnitLoadout]] format for weapon items.|DESCRIPTION= | * Since Arma 3 v1.95.145811 the returned array always contains secondary muzzle magazine info and consistent with [[getUnitLoadout]] format for weapon items.|DESCRIPTION= | ||
| [[weaponsItemsCargo]] vehicle |SYNTAX= | | [[weaponsItemsCargo]] vehicle |SYNTAX= | ||
Line 21: | Line 18: | ||
| [[Array]] - see [[weaponsItems]] |RETURNVALUE= | | [[Array]] - see [[weaponsItems]] |RETURNVALUE= | ||
|x1= <code>[[weaponsItemsCargo]] [[vehicle]] [[player]];</code> |EXAMPLE1= | |x1= <code>[[weaponsItemsCargo]] [[vehicle]] [[player]];</code> |EXAMPLE1= | ||
|x2= <code>[[weaponsItemsCargo]] _weaponholder;</code> |EXAMPLE2= | |x2= <code>[[weaponsItemsCargo]] _weaponholder;</code> |EXAMPLE2= | ||
| [[weaponsItems]], [[primaryWeaponItems]], [[secondaryWeaponItems]], [[handgunItems]], [[addPrimaryWeaponItem]], [[addSecondaryWeaponItem]], [[addHandgunItem]], [[primaryWeapon]], [[secondaryWeapon]], [[handgunWeapon]], [[weaponAccessories]], [[weaponAccessoriesCargo]], [[addWeaponWithAttachmentsCargoGlobal]] |SEEALSO= | | [[weaponsItems]], [[primaryWeaponItems]], [[secondaryWeaponItems]], [[handgunItems]], [[addPrimaryWeaponItem]], [[addSecondaryWeaponItem]], [[addHandgunItem]], [[primaryWeapon]], [[secondaryWeapon]], [[handgunWeapon]], [[weaponAccessories]], [[weaponAccessoriesCargo]], [[addWeaponWithAttachmentsCargoGlobal]] |SEEALSO= |
Revision as of 04:17, 17 January 2021
Description
- Description:
- Returns an array with subarrays contains class names and also names of connected items of all the vehicle's cargo weapons in weaponsItems format. If weapon has no magazine, an empty array [] is returned instead of magazine info. If the argument is a vehicle with weapons, vehicles cargo is searched, unlike with weaponsItems command, which will return vehicle's weapons instead.
- Since Arma 3 v1.95.145811 the returned array always contains secondary muzzle magazine info and consistent with getUnitLoadout format for weapon items.
- Groups:
- ContainersVehicle Inventory
Syntax
- Syntax:
- weaponsItemsCargo vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array - see weaponsItems
Examples
- Example 1:
weaponsItemsCargo vehicle player;
- Example 2:
weaponsItemsCargo _weaponholder;
Additional Information
- See also:
- weaponsItemsprimaryWeaponItemssecondaryWeaponItemshandgunItemsaddPrimaryWeaponItemaddSecondaryWeaponItemaddHandgunItemprimaryWeaponsecondaryWeaponhandgunWeaponweaponAccessoriesweaponAccessoriesCargoaddWeaponWithAttachmentsCargoGlobal
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