getUnitTrait

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.581.58Arguments of this scripting command don't have to be local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Gets the current value of a trait of the given unit.
For the default values please visit setUnitTrait.

Syntax

Syntax:
unit getUnitTrait skillName
Parameters:
Unit: Object
skillName: String - Name of the skill
Return Value:

Examples

Example 1:
player getUnitTrait "Medic";

Additional Information

See also:
setUnitTraitgetAllUnitTraits

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Bottom Section

Notes

Bottom Section