Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduced in

Version:3.9.1

Description

Description:

This function gets the weapon cargo of an object, and also the weapon object cargo (which is normally returned in a different arrray array structure) and returns both in the array structure expected of getWeaponCargo.

The intention behind writing this function is to aid searches of weapon cargo in contains that contain the new (at time of writing) weapon 'Objects' - as they are not returned by getWeaponCargo.

Object weapons will be returned as separate categories with count 1.

Syntax

Syntax:
[unit] call fn_vbs_getWeaponAndObjectCargo
Parameters:
Return Value:Array - similar format as in getWeaponCargo. Each object weapon will be returned as separate categories with count 1.

Examples

Examples:
_weaponCargo = [player] call fn_vbs_getWeaponAndObjectCargo

Additional Information

See also:getWeaponCargogetWeaponObjectsCargo

Notes