getDescription: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "<dt class="note">([^<>]+) " to "<dt class="note">$1</dt> ") |
||
Line 26: | Line 26: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt class="note">[[User:Druid|Druid]] | <dt class="note">[[User:Druid|Druid]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
Return value fixed in revision 0.51.103185. | Return value fixed in revision 0.51.103185. |
Revision as of 01:25, 30 January 2021
Description
- Description:
- Returns the string representation of unit as an four slots array.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- getDescription unit
- Parameters:
- unit: Object
- Return Value:
- Array of Strings to format [unitClass, uniformName, vestName, backpackClass]
Examples
- Example 1:
getDescription player; // (UAV Operator) // returns ["B_soldier_UAV_F", "Combat Fatigues (MTP)", "Carrier Special Rig (Green)", "B_UAV_01_backpack_F"]
- Example 2:
getDescription objNull; // returns ["ERROR", "ERROR", "ERROR", "ERROR"]
Additional Information
- See also:
- roleDescriptionvehicleVarName
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
- Druid
- Return value fixed in revision 0.51.103185.