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


Introduced in

Version:2.00

Description

Description:

Checks whether a unit has a specific capability enabled.

The available capabilities are described in addCapability.

Syntax

Syntax:unit hasCapability capability
Parameters:
  • unit: Object - Unit to check.
  • capability: String - Can be: "SWIM", "SCUBA", "REBREATHER", "FREEFALL", or "STEERABLEPARACHUTE".
Return Value:Boolean - If true, then checked capability is enabled.

Examples

Examples:if (player hasCapability "FREEFALL") then {hint "JUMP"}

Additional Information

See also: capabilities, addCapability, removeCapability
Multiplayer: 
Problems: 

Notes