Arma 3 Scripting

BIS_fnc_arsenal

  • Arma 3 v1.24

Function · Markdown · JSON · original wiki page

Description

Function used for the Virtual Arsenal. The function features four different modes, each mode comes with its own parameters.

Note

If Arsenal is launched within the first second from the mission start, the unit loadout will be randomised.

Syntax

[mode, params] call BIS_fnc_arsenal

Parameters:

Returns: Nothing

Examples

Example 1

Opens Arsenal with all items:

["Open", [true]] call BIS_fnc_arsenal;

Example 2

Preloads Arsenal's config:

["Preload"] call BIS_fnc_arsenal;

Example 3

Adds full Arsenal to the player object and makes the action available when the player is closer than 10 meters from ammoBox:

["AmmoboxInit", [ammoBox, true, { _this distance _target  < 10 }]] call BIS_fnc_arsenal;

Example 4

Removes Arsenal from player object:

["AmmoboxExit", player] call BIS_fnc_arsenal;

See also

Arma 3: Arsenal · BIS_fnc_garage