getDescription: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


|game1= arma3 |Game name=
|game1= arma3 |Game name=
Line 7: Line 6:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


|descr= Returns the string representation of unit as an four slots array. |DESCRIPTION=
|descr= Returns the string representation of unit as an four slots array. |DESCRIPTION=
____________________________________________________________________________________________


|s1= [[getDescription]] unit
|s1= [[getDescription]] unit

Revision as of 01:21, 17 January 2021

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:
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.

Bottom Section