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


Introduced in

Version:2.11

Description

Description:Returns burst counts and reload times for all the weapon muzzles.

Syntax

Syntax:unit getMuzzleInfo type
Parameters:
  • unit: Object - Unit with weapon.
  • type: String - Type of weapon to inquire about. Can be: "PRIMARY", "SECONDARY", or "HANDGUN".
Return Value:Array - Containing one sub-array for each of the weapon muzzles, with its burst count and reload times. If a unit does have the specified weapon type, then nil is returned.

Examples

Examples:
_reload1 = ((player getMuzzleInfo "primary") select 0) select 1

Additional Information

See also: getWeaponMaxBurst, muzzles
Multiplayer:
Problems:

Notes