ACE & Vanilla Arsenal
ACE
Begin by placing an object, such as a B_CargoNet_01_ammo_F, but feel free to use any object you prefer. Now double-click on the object and enter the following code into the init field:
[this, true] call ace_arsenal_fnc_initBox;This one is unique with its special design. Begin by placing an object. Double-click on it to access the init field. Insert the following code:
this addAction ["<t color='#FFFFFF' size='1'><img image='a3\ui_f\data\logos\a_64_ca.paa'></img><t color='#ffd700' size='1' font='puristaBold'>ACE ARSENAL<t>", {[player, player, true] call ace_arsenal_fnc_openBox;}];Start by placing down a trigger and put this activation settings:
Activation:
Type= None
Activation= Any Player
Activation Type= Present
Repeatable= [YES]
Server Only= [NO]
Now that you have filled in those settings, navigate to Expression and utilize the following:
Expression:
Condition:player in thisList
On Activation:thisTrigger setVariable ["_playerAction", player addAction ["<t color='#FFFFFF' size='1.4'><img image='a3\ui_f\data\logos\a_64_ca.paa'></img><t color='#ffd700' size='1.4' font='puristaBold'> ACE Arsenal</t>", {[player, player, true] call ace_arsenal_fnc_openBox;}]];
On Deactivation:player removeAction (thisTrigger getVariable ["_playerAction", -1])
Now you've set up a trigger area. When a player enters this area, they will be presented with an action called ACE Arsenal.
Vanilla
Expression:
Condition:player in thisList
On Activation:thisTrigger setVariable ["_playerAction", player addAction ["Arsenal", {["Open", [true]] call BIS_fnc_arsenal;}]];
On Deactivation:player removeAction (thisTrigger getVariable ["_playerAction", -1])
Begin by placing an object, such as a B_CargoNet_01_ammo_F, but feel free to use any object you prefer. Now double-click on the object and enter the following code into the init field:
this addAction ["Arsenal", {["Open", [true]] call BIS_fnc_arsenal;Last updated