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 move.

Note: In the case of a vehicle, the command only checks the damage value, not the amount of fuel.

Syntax

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

Examples

Examples:
if !(canMove _tank) then {player sideChat "The tank is stuck!"}

Additional Information

See also: canFire, canStand, fn vbs unitCanEject
Multiplayer: 
Problems: 

Notes