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

Introduced in

Version:1.00

Description

Description:

Checks if the given unit / vehicle is able to fire.

Note: The command checks only the weapons damage value, not the remaining ammunition.

Syntax

Syntax:canFire object
Parameters:
  • object: Object - Unit / vehicle.
Return Value:Boolean - Returns true, if the unit / vehicle isl able to fire, false if not.

Examples

Examples:
if !(canFire _tank) then {player sideChat "Tank disabled!"}

Additional Information

See also: canMove, canStand
Multiplayer:
Problems:

Notes





true even if unit is out of ammo. Only false if gun is damaged.

False if there is no gunner in the vehicle, regardless of damage level. --
Canukausiuka
05:20, 24 August 2008 (CEST)