getDescription: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
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 }}")
Line 22: Line 22:
}}
}}


<dl class="command_description">
{{Note
 
|user= Druid
<dt class="note">[[User:Druid|Druid]]</dt>
|timestamp=
<dd class="note">
|text=  
Return value fixed in revision 0.51.103185.
Return value fixed in revision 0.51.103185.
 
}}
</dl>

Revision as of 18:10, 12 May 2023

Hover & click on the images for description

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:
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 - c
Date unknown
Return value fixed in revision 0.51.103185.