getUnitTrait: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 16: Line 16:
* [[Nothing]] - if ''unit'' is invalid, e.g an empty vehicle
* [[Nothing]] - if ''unit'' is invalid, e.g an empty vehicle
|x1= <code>[[player]] [[getUnitTrait]] "Medic";</code>
|x1= <code>[[player]] [[getUnitTrait]] "Medic";</code>
| [[setUnitTrait]], [[getAllUnitTraits]]
|seealso= [[setUnitTrait]], [[getAllUnitTraits]]
}}
}}

Revision as of 23:47, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Object Manipulation

Syntax

Syntax:
Syntax needed
Parameters:
Unit: Object
skillName: String - Name of the skill
Return Value:
Return value needed

Examples

Example 1:
player getUnitTrait "Medic";

Additional Information

See also:
setUnitTraitgetAllUnitTraits

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note