getUnitLoadout

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 3 version 1.58
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.58

Description

Description:
Returns an array with all assigned items, weapons, containers and their stored items. Detailed explanation of the returned array: Talk:getUnitLoadout
warning.png This command is not final and might be changed in a near future.

Syntax

Syntax:
getUnitLoadout unit
Parameters:
unit: Object
Return Value:
Array - Array containing all inventory items

Alternative Syntax

Syntax:
getUnitLoadout class
Parameters:
class: String or Config
Return Value:
Array - Array containing all inventory items

Examples

Example 1:
getUnitLoadout player;
Example 2:
getUnitLoadout "B_Soldier_F";
Example 3:
getUnitLoadout (configFile >> "CfgVehicles" >> "B_Soldier_F");

Additional Information

Multiplayer:
-
See also:
setUnitLoadout

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Bottom Section

Notes

Bottom Section