getDescription: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 0.50 | |version1= 0.50 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
|descr= Returns the string representation of unit as an four slots array. | |descr= Returns the string representation of unit as an four slots array. | ||
|s1= [[getDescription]] unit | |s1= [[getDescription]] unit |
Revision as of 00:34, 18 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
Notes
- Druid
- Return value fixed in revision 0.51.103185.