Arma 3 Virtual Arsenal Init

  1. Arsenal Command Arma 3
  2. Arma 3 Arsenal Box Script
  3. Arma 3 Ace Arsenal Script

This mod for the Arma 3 game allows you to use the Virtual Arsenal anywhere. Later versions of this mod will most likely use an alternative method to access the arsenal. For the moment you can access the arsenal by pressing the 'U' KEY. Installation: Extract into the ArmA 3 Directory, by default this is located in.

  • Perhaps the biggest thing you are going to want to change is your weapon. The current selection of guns in the Arma 3 beta is fairly slim, however the addition of a multiple attachment system allows for those weapons to be used in multiple, different scenarios.
  • This code placed in the initPlayerLocal.sqf will create an arsenal on the crate named 'crat99' if you name a box that. Very good code, then the player need only walk up to the crate and hold space to access arsenal. 6 comments 67% Upvoted.
  • 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.
  • The virtual arsenal will always show a weapon or equipment a player currently has on his character. In addition a player can load a loadout they previously saved that may have weapons and equipment you do not want them to have.
  • 1Using
    • 1.1Export
  • 2Modding
    • 2.2Virtual Ammo Box


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


Using

Export

Export to SQF

Clicking on EXPORT button or pressing Ctrl + C will copy the current loadout to clipboard in SQF format. You can paste it to soldier's init field or use it in a script.

You can take the same code and import it (Ctrl + V) back to Arsenal. Use this to share loadouts with other players.

Example:Show text


Export to CPP

Pressing CTRL + SHIFT + C will export the loadout in config format, which can then be used in CfgRespawnInventory.Example:

Zeus Ammo Box

Virtual

As Zeus, you can create virtual ammo box where players can endlessly resupply. Instead going through the classic inventory screen, they'll be able to access Arsenal and select any item you'll give them.

  1. Play a scenario as Zeus
  2. Place an ammo box (Units > Empty > Other > Ammo > [anything from the list])
  3. Select an item you want to make available in the Arsenal
  4. Decrease number of items to 0. Button on the left should change from '-' to '∞'
  5. Click on the button once more. Number of items should now be infinite
  6. After confirming, players will be able to access Arsenal through a new action attached to the box.


Zeus Unit Arsenal

Zeus can use Arsenal module to quickly customize gear of any AI soldier. It doesn't work on players, dead units or vehicles.

  1. Play a scenario as Zeus
  2. Find a unit you want to customize
  3. Select Modules > Zeus > Arsenal
  4. Place the module on top of the unit
  5. Arsenal interface will be opened. You can either set specific items, or you can load previously saved loadout.


Zeus Respawn Loadouts

Saved loadout can be given to players as respawn loadouts by Zeus. Works only in scenarios with MenuInventory respawn template enabled.

  1. Save your loadout
  2. Play a scenario as Zeus
  3. Place Modules > Respawn > Loadouts
  4. Select side tab
  5. Expand Arsenal category
  6. Select the saved loadout.
  7. After confirming, players of the given side will be able to respawn with your loadout.


Shortcuts

ShortcutDescription
Ctrl + Shift + CCopies current loadout in config format to the clipboard, can be used for CfgRespawnInventory
Ctrl + CExports current loadout in script format
Ctrl + VApplies loadout from clipboard to currently viewed unit
ESCLeave Arsenal
BackspaceTest current loadout
EnterStart preview
Ctrl + RRandomise loadout
NToggle view mode


Modding

Access

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

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

Arsenal Command Arma 3

  • 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:

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. Action to access the Arsenal will be added automatically on all clients, you don't need to use addAction to enable it.

Syntax (shared by all mentioned functions):

or

  • box: Object - ammo box on which the action will be added
  • allowAll: Boolean - (Optional) true to add all available weapons, magazines, items and backpacks in the box
  • condition: Boolean - (Optional, default { true} ) condition for showing the Arsenal action
    • Passed arguments are the same as in addAction condition, i.e., _target - the box, _this - caller

Returned value:Nothing

Example (paste it into init field of a box)

To set which specific items should be available, use functions mentioned below.

You can preview all functions in in-game Functions viewer (while in editor, press Functions button or Ctrl + F)

Add

Functions:

Syntax (shared by all mentioned functions):

  • target: Object or Namespace - ammo box to which classes will be added. When missionNamespace is used, they will be available across all boxes.
  • classes: Boolean or Array of Strings - whitelisted classes. Alternatiovely, use true to whitelist everything of the given type
  • 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:

To add everything, use:

Remove

Functions:

(Note: Only cargo specifically whitelisted can be removed via these commands e.g creating an arsenal container with a whitelist of true (<allowAll>) and then trying to remove 'arifle_MX_ACO_pointer_F' will not work)

Arma 3 Arsenal Box Script

Syntax (shared by all mentioned functions):

  • target: Object or Namespace - ammo box from which classes will be removed.
  • classes: Array of Stringss - removed classes
  • isGlobal: Boolean - (Optional, default false) true to remove classes globally

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

Example:

If an arsenal container has been created by using true as the whitelist (<allowAll>) then a string of '%ALL' (ALL CAPITAL LETTERS) will be inserted into the category array. To remove this kind of whitelist instead use..

Get

Functions:

Syntax (shared by all mentioned functions):

  • target: Object or Namespace

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

Example:

Arma 3 Ace Arsenal Script

Retrieved from 'https://community.bistudio.com/wiki?title=Arma_3_Arsenal&oldid=155776'