Arma 3 Scripting

Command in Object Manipulation

getUnitTrait

Also available as Markdown and JSON, or read the original wiki page.

Description

Gets the current value of a trait of the given unit.

Note

For the default values see setUnitTrait.

Syntax

unit getUnitTrait skillName

Parameters:

Returns: - Boolean or Number - trait's value

Examples

Example 1

player getUnitTrait "Medic";

See also

setUnitTrait · getAllUnitTraits