getUnitTrait

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.58
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.58

Description

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

Default traits are:
  • audibleCoef (scalar)
  • camouflageCoef (scalar)
  • engineer (bool)
  • explosiveSpecialist (bool)
  • loadCoef (scalar)
  • medic (bool)
  • UAVHacker (bool)

Syntax

Syntax:
unit getUnitTrait skill_name
Parameters:
Unit: Object
skill_name: String - Name of the skill
Return Value:
Bool or Scalar - Value of the trait

Examples

Example 1:
player getUnitTrait "Medic";

Additional Information

Multiplayer:
-
See also:
setUnitTrait

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Bottom Section

Notes

Bottom Section