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




Introduced in

Version:1.00

Description

Description:

Returns the fill ratio for the current weapon magazine.

Always returns 0 for single projectile weapons (rocket launchers, cannons, and so on).

Syntax

Syntax:needReload vehicle
Parameters:
  • vehicle: Object - Vehicle or unit to check.
Return Value:Number - Between 0 (magazine full) and 1 (magazine empty).

Examples

Examples:
_ammoLevel =  needReload _vehicle

Additional Information

See also: loadMagazine, ammo, someAmmo
Multiplayer: 
Problems: 

Notes