BIS_fnc_invCodeToArray

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 2 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 2
Version:
1.00

Description

Description:
Converts inventory code (used in configs) to array with numbers for weapons and magazines (and their counts).

Syntax

Syntax:
[configCode] call BIS_fnc_invCodeToArray
Parameters:
configCode: Scalar - Config code, see example
Return Value:
Array of numbers - Items slots numbers

Examples

Example 1:
[ call compile getText (configfile >> "CfgVehicles" >> typeOf player >> "weaponSlots")] call BIS_fnc_invCodeToArray;//Can return [1,0,0,0,0,0,0,0]

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_invRemoveBIS_fnc_invStringBIS_fnc_invSlotsBIS_fnc_invSlotsEmptyBIS_fnc_invSlotTypeBIS_fnc_invAdd

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

Notes

Bottom Section