getAllUnitTraits: Difference between revisions
BrettMayson (talk | contribs) mNo edit summary |
BrettMayson (talk | contribs) mNo edit summary |
||
| Line 14: | Line 14: | ||
|p1= unit: [[Object]] or {{GVI|arma3|2.18|size= 0.75}} [[String]] - a unit or a class name | |p1= unit: [[Object]] or {{GVI|arma3|2.18|size= 0.75}} [[String]] - a unit or a class name | ||
|r1= [[Array]] of [[Array]]s with [name, value] | |r1= [[Array]] of [[Array]]s with [name, value] | ||
* name: [[String]] - trait's name | * name: [[String]] - trait's name | ||
* value [[String]] or [[Boolean]] - trait's value | * value [[String]] or [[Boolean]] - trait's value | ||
Latest revision as of 10:02, 2 January 2026
Description
- Description:
- Returns unit traits (native or set by setUnitTrait).
- Groups:
- Object Manipulation
Syntax
- Syntax:
- getAllUnitTraits unit
- Parameters:
- unit: Object or
2.18 String - a unit or a class name - Return Value:
- Array of Arrays with [name, value]
Examples
- Example 1:
- Example 2:
- Example 3:
- Since
2.18:
Additional Information
- See also:
- getUnitTrait setUnitTrait
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
- Posted on Nov 27, 2023 - 02:54 (UTC)
- Local argument assumed, needs confirmation