getAllUnitTraits: Difference between revisions
Jump to navigation
Jump to search
(Combined Syntax 1 and 2) |
m (2.16 -> 2.18) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
|version1= 2.00 | |version1= 2.00 | ||
|arg= | |arg= local | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
Line 12: | Line 12: | ||
|s1= [[getAllUnitTraits]] unit | |s1= [[getAllUnitTraits]] unit | ||
|p1= unit: [[Object]] or {{GVI|arma3|2. | |p1= unit: [[Object]] or {{GVI|arma3|2.18|size= 0.75}} [[String]] - a unit or a class name | ||
|r1= [[Array]] of [[Array]]s in format [name, value] where: | |r1= [[Array]] of [[Array]]s in format [name, value] where: | ||
Line 41: | Line 41: | ||
</sqf> | </sqf> | ||
|x3= Since {{GVI|arma3|2. | |x3= Since {{GVI|arma3|2.18|size= 0.75}}: | ||
<sqf> | <sqf> | ||
/* | /* | ||
Line 58: | Line 58: | ||
|seealso= [[getUnitTrait]] [[setUnitTrait]] | |seealso= [[getUnitTrait]] [[setUnitTrait]] | ||
}} | |||
{{Note | |||
|user= Unknown | |||
|text= Local argument assumed, may need confirmation | |||
}} | }} |
Revision as of 16:11, 8 February 2024
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 in format [name, value] where:
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 or on the Forums.
Only post proven facts here! Add Note
- Date unknown
- Local argument assumed, may need confirmation