getDescription: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game version" to "|Game version=") |
Lou Montana (talk | contribs) (Add example) |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 |Game name= | |game1= arma3 |Game name= | ||
|0.50|Game version= | |version1= 0.50|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the string representation of unit as an four slots array. | |descr= Returns the string representation of unit as an four slots array. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | |s1= [[getDescription]] unit | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
| [[Array]] | |r1= [[Array]] of [[String]]s to format <tt>[unit'''Class''', uniform'''Name''', vest'''Name''', backpack'''Class''']</tt> | ||
|x1= <code> | |x1= <code>[[getDescription]] [[player]]; {{cc|(UAV Operator)}} | ||
</code> | {{cc|returns ["B_soldier_UAV_F", "Combat Fatigues (MTP)", "Carrier Special Rig (Green)", "B_UAV_01_backpack_F"]}}</code> | ||
|x2= <code>[[getDescription]] [[objNull]]; {{cc|returns ["ERROR", "ERROR", "ERROR", "ERROR"]}}</code> | |||
| [[roleDescription]], [[vehicleVarName]] | |seealso= [[roleDescription]], [[vehicleVarName]] | ||
}} | }} | ||
Line 32: | Line 29: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dt class="note"> | <dt class="note">[[User:Druid|Druid]] | ||
<dd class="note"> | <dd class="note"> | ||
Return value fixed in revision 0.51.103185. | Return value fixed in revision 0.51.103185. | ||
Line 40: | Line 37: | ||
<h3 style='display:none'>Bottom Section</h3> | <h3 style='display:none'>Bottom Section</h3> | ||
Revision as of 00:26, 5 January 2020
Description
- Description:
- Returns the string representation of unit as an four slots array.
- Groups:
- Uncategorised
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.