Arsenal – Arma 3

From Bohemia Interactive Community
Revision as of 15:15, 1 July 2014 by Str (talk | contribs)
Jump to navigation Jump to search
a3 arsenal.png


Arsenal is, essentially, a character, equipment and weapon viewer which has been added to Arma 3 in the Bootcamp update. This tool offers an overview of the available content, and enables customized loadouts to be exported to script, which can be used in the editor, other game modes, such as Zeus, and by community scenarios/mods.

You can access it from the main menu by locking on LEARN > VIRTUAL ARSENAL

Modding

Access

You can use Arsenal in a scenario you're designing simply by calling the following function:

[] call BIS_fnc_arsenal;

This version has several limitations as opposed to the Virtual one:

  • Voice, Face and Insignia are not available (to avoid clashing with profile)
  • Not all assets are automatically present, designer has to whitelist allowed classes. By default, only player's current equipment is available.

To open Arsenal with full options, execute:

["Open",true] call BIS_fnc_arsenal;


Virtual Ammo Box

You can also use Arsenal as virtual inventory, allowing players to get unlimited number of items of given types from an ammo box.

["AmmoboxInit",myBox] call BIS_fnc_arsenal;

To set which weapons and items should be available, use functions mentioned below. Template:note

Add

Functions:

Syntax (shared by all mentioned functions):

[<target>,<classes>,(<isGlobal>,<addAction>)] call BIS_fnc_addVirtualWeaponCargo;
  • target: Object or Namespace - ammo box to which classes will be added. When missionNamespace is used, they will be available across all boxes.
  • classes: Array of Stringss - whitelisted classes
  • isGlobal (Optional): Boolean - true to add classes globally (default: false)
  • addAction (Optional): Boolean - true to add "Arsenal" action which players can access the Arsenal (default: true)

Returned value: Array of Arrays: All virtual items within the target's space in format [<items>,<weapons>,<magazines>,<backpacks>]

Example:

[myBox,["arifle_MX_F","arifle_MX_SW_F","arifle_MXC_F"],true] call BIS_fnc_addVirtualWeaponCargo;

Remove =

Functions:

Syntax (shared by all mentioned functions):

[<target>,<classes>,(<isGlobal>)] call BIS_fnc_addVirtualWeaponCargo;

Returned value: Array of Arrays: All virtual items within the target's space in format [<items>,<weapons>,<magazines>,<backpacks>]

Example:

[myBox,["arifle_MXC_F"],true] call BIS_fnc_removeVirtualWeaponCargo;

Get

Functions:

Syntax (shared by all mentioned functions):

[<target>] call BIS_fnc_addVirtualWeaponCargo;

Returned value: Array of Arrays: All virtual items within the target's space in format [<items>,<weapons>,<magazines>,<backpacks>]

Example:

myBox call BIS_fnc_removeVirtualWeaponCargo;


Zeus Respawn Loadouts

a3 arsenal loadout save.png a3 arsenal loadout load.png