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

Introduced in



Description:Sets states and / or makes an action of / on a weapon. 


Syntax:vehicle setWeaponReloadingTime [gunner, weaponName, reloadTime]
  • vehicle: Object - Affected vehicle.
  • gunner: Object - Affected vehicle gunner.
  • weaponName: String - Weapon name.
  • reloadTime: Number - Weapon reload time, between 0 - 1, where 1 is 100% of maximum reload time.
Return Value:Boolean - If the command is successful, returns true; otherwise, false.


Examples:_done = _vehicle setWeaponReloadingTime [gunner (vehicle player), currentMuzzle (gunner (vehicle player)), 0.5];

Additional Information

See also:


Posted on January 15, 2012
The description is confusing to me. What the command essential does is to set the reloading state/time of the given weapon. For example you can fire a missile, and make the weapon available to fire again instantly if you apply 0. Or you can delay or stop the reload event indefinitely. The 0-1 range is a percentage - the reload time is taken from the weapons's config value (either reloadTime or magazineReloadTime - not sure). The effect is one time only each - it does not modify the weapon's general reload time.
Works also for infantry weapons - probably useful weapons with longer reload time like sniper weapons or launchers:

player setWeaponReloadingTime [player,currentWeapon player,0];

No idea what's point of the return value.