Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:3.9.0

Description

Description:Returns object references of weapons owned by the given unit or vehicle.

Syntax

Syntax:getWeaponObjects unit
Parameters:
Return Value:Array - Array of weapon object references owned by the given unit or vehicle.

Alternative Syntax

Syntax:getWeaponObjects [vehicle, turret]
Parameters:
  • vehicle: Object - The vehicle.
  • turret: Array - The path to the vehicle turret.
Return Value:Array - Array of weapon object references owned by the given unit or vehicle.

Examples

Examples:
_myWeapons = getWeaponObjects player

Additional Information

See also: weapons, getWeaponObjectsCargo
Multiplayer: 
Problems: 

Notes