getDescription: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*) ([^ ]*)<\/code>" to "<code>$1$2$3 $4</code>") |
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
||
Line 14: | Line 14: | ||
|r1= [[Array]] of [[String]]s to format {{hl|[unit'''Class''', uniform'''Name''', vest'''Name''', backpack'''Class''']}} | |r1= [[Array]] of [[String]]s to format {{hl|[unit'''Class''', uniform'''Name''', vest'''Name''', backpack'''Class''']}} | ||
|x1= < | |x1= <sqf>getDescription player; // (UAV Operator) | ||
// returns ["B_soldier_UAV_F", "Combat Fatigues (MTP)", "Carrier Special Rig (Green)", "B_UAV_01_backpack_F"]</ | // returns ["B_soldier_UAV_F", "Combat Fatigues (MTP)", "Carrier Special Rig (Green)", "B_UAV_01_backpack_F"]</sqf> | ||
|x2= < | |x2= <sqf>getDescription objNull; // returns ["ERROR", "ERROR", "ERROR", "ERROR"]</sqf> | ||
|seealso= [[roleDescription]] [[vehicleVarName]] | |seealso= [[roleDescription]] [[vehicleVarName]] |
Revision as of 10:23, 13 May 2022
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:
Additional Information
- See also:
- roleDescription vehicleVarName
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.