getDescription: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<dl class="command_description"> *<dt class="note">\[\[User:([a-zA-Z0-9_]+)\|[a-zA-Z0-9_ ]+\]\](<\/dt>)? <dd class="note">([a-zA-Z0-9 _.\-\\\/ ]+)(<\/dd>)? *<\/dl>" to "{{Note |user= $1 |timestamp= |text= $3 }}") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 12: | Line 12: | ||
|p1= unit: [[Object]] | |p1= unit: [[Object]] | ||
|r1= [[Array]] of [[String]]s | |r1= [[Array]] of [[String]]s format {{hl|[unit'''Class''', uniform'''Name''', vest'''Name''', backpack'''Class''']}} | ||
|x1= <sqf>getDescription player; // | |x1= <sqf> | ||
// returns ["B_soldier_UAV_F", "Combat Fatigues (MTP)", "Carrier Special Rig (Green)", "B_UAV_01_backpack_F"]</sqf> | getDescription player; // UAV Operator | ||
// returns ["B_soldier_UAV_F", "Combat Fatigues (MTP)", "Carrier Special Rig (Green)", "B_UAV_01_backpack_F"] | |||
</sqf> | |||
|x2= <sqf>getDescription objNull; // returns ["ERROR", "ERROR", "ERROR", "ERROR"]</sqf> | |x2= <sqf>getDescription objNull; // returns ["ERROR", "ERROR", "ERROR", "ERROR"]</sqf> | ||
Line 24: | Line 26: | ||
{{Note | {{Note | ||
|user= Druid | |user= Druid | ||
|timestamp= | |timestamp= 20130319155400 | ||
|text= | |text= Return value fixed in revision 0.51.103185. | ||
Return value fixed in revision 0.51.103185. | |||
}} | }} |
Latest revision as of 18:13, 12 May 2023
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 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
- Posted on Mar 19, 2013 - 15:54 (UTC)
- Return value fixed in revision 0.51.103185.