Arsenal – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:


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.
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.
== Virtual Arsenal ==
Virtual Arsenal is a special mission on Virtual Reality world which lets you preview and and try any piece of equipment (including community made ones) in a controlled environment.


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


== Virtual Ammo Box ==
== Modding ==
=== Access ===
You can use Arsenal in a scenario you're designing simply by calling the following [[Functions|function]]:
You can use Arsenal in a scenario you're designing simply by calling the following [[Functions|function]]:
  [] call [[BIS_fnc_arsenal]];
  [] [[call]] [[BIS_fnc_arsenal]];
This version has several limitations as opposed to the Virtual one:
This version has several limitations as opposed to the Virtual one:
* Voice, Face and Insignia are not available (to avoid clashing with profile)
* Voice, Face and Insignia are not available (to avoid clashing with profile)
Line 19: Line 17:
  ["Open",true] call BIS_fnc_arsenal;
  ["Open",true] call BIS_fnc_arsenal;


== Zeus Respawn Loadouts ==


=== 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.
{{note|You can preview all functions in in-game Functions viewer (while in editor, press Functions button or Ctrl + F)}}
==== Add ====
'''Functions:'''
* [[BIS_fnc_addVirtualBackpackCargo]]
* [[BIS_fnc_addVirtualItemCargo]]
* [[BIS_fnc_addVirtualMagazineCargo]]
* [[BIS_fnc_addVirtualWeaponCargo]]
'''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 [[Strings]]s - 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:'''
* [[BIS_fnc_removeVirtualBackpackCargo]]
* [[BIS_fnc_removeVirtualItemCargo]]
* [[BIS_fnc_removeVirtualMagazineCargo]]
* [[BIS_fnc_removeVirtualWeaponCargo]]
'''Syntax''' (shared by all mentioned functions):
[<target>,<classes>,(<isGlobal>)] call BIS_fnc_addVirtualWeaponCargo;
*target: [[Object]] or [[Namespace]] - ammo box from which classes will be removed.
*classes: [[Array]] of [[Strings]]s - removed classes
*isGlobal (Optional): [[Boolean]] - [[true]] to remove classes globally (default: [[false]])
'''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:'''
* [[BIS_fnc_getVirtualBackpackCargo]]
* [[BIS_fnc_getVirtualItemCargo]]
* [[BIS_fnc_getVirtualMagazineCargo]]
* [[BIS_fnc_getVirtualWeaponCargo]]
'''Syntax''' (shared by all mentioned functions):
[<target>] call BIS_fnc_addVirtualWeaponCargo;
*target: [[Object]] or [[Namespace]]
'''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 ===
[[File:a3 arsenal loadout save.png|200px]]
[[File:a3 arsenal loadout save.png|200px]]
[[File:a3 arsenal loadout load.png|200px]]
[[File:a3 arsenal loadout load.png|200px]]

Revision as of 16:15, 1 July 2014

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