{"name":"getDescription","operator":null,"title":"getDescription","type":"command","url":"https://community.bistudio.com/wiki/getDescription","revid":340864,"updated":"2023-05-12T17:13:00Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the string representation of unit as an four slots array.","syntaxes":[{"syntax":"getDescription unit","since":null,"effect":null,"exec":null,"params":[{"name":"unit","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"unit: Object"}],"returns":{"type":null,"types":["Array","String"],"description":null,"text":"Array of Strings format `[unit**Class**, uniform**Name**, vest**Name**, backpack**Class**]`"},"form":"unary","operator":null,"left":null,"right":{"text":"unit","types":["Object"]}}],"examples":[{"text":"```sqf\ngetDescription player; // UAV Operator\n// returns [\"B_soldier_UAV_F\", \"Combat Fatigues (MTP)\", \"Carrier Special Rig (Green)\", \"B_UAV_01_backpack_F\"]\n```","code":["getDescription player; // UAV Operator\n// returns [\"B_soldier_UAV_F\", \"Combat Fatigues (MTP)\", \"Carrier Special Rig (Green)\", \"B_UAV_01_backpack_F\"]"]},{"text":"```sqf\ngetDescription objNull; // returns [\"ERROR\", \"ERROR\", \"ERROR\", \"ERROR\"]\n```","code":["getDescription objNull; // returns [\"ERROR\", \"ERROR\", \"ERROR\", \"ERROR\"]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["roleDescription","vehicleVarName"],"notes":[{"user":"Druid","date":"2013-03-19T15:54:00Z","text":"Return value fixed in revision 0.51.103185."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 0.50","Scripting Commands"]}