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



Introduced in

Version:2.00

Description

Description:Sets the weapon state.

Syntax

Syntax:vehicle setWeaponState [reloadInstantly, weaponName, reloadTime]
Parameters:
  • vehicle: Object - Affected vehicle.
  • reloadInstantly: Boolean - If true, the weapon reloads instantly; otherwise, false.
  • weaponName: String - Weapon class name.
  • reloadTime: Number -Weapon reload time, between 0 - 1, where 1 is 100% of maximum reload time.
Return Value:Boolean

Examples

Examples:_done = _vehicle setWeaponState [true, , 0];

Additional Information

See also: weaponState
Multiplayer:
Problems:

Notes