initial commit

This commit is contained in:
2020-01-15 19:18:38 +01:00
commit 593a971b19
49 changed files with 1060 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/*
Author: Djeeberjr
Description:
Enables a full Arsenal on a object
Effect: local
Parameter(s):
0: OBJECT - the object of the arsenal
*/
params ["_obj"];
//Check if the is already an arsenal on it
if( isNull (_obj getVariable ["DLib_arsenal",objNull]))then{
_bisArsenal = _obj addAction ["BIS Arsenal",{
[ "Open", [ true ] ] call BIS_fnc_arsenal;
},[],1.5,true,true,"","true",5];
_obj setvariable ["DLib_arsenal",_bisArsenal];
if (isClass(configFile >> "CfgPatches" >> "ace_main")) then {
[_obj, true] call ace_arsenal_fnc_initBox;
};
};

View File

@@ -0,0 +1,27 @@
/*
Author: Djeeberjr
Description:
Disables a full Arsenal on a object
Effect: local
Parameter(s):
0: OBJECT - the object of the arsenal
*/
params ["_obj"];
//Check if the arsenal is already removes
if(typeName (_obj getVariable ["DLib_arsenal",objNull]) == "SCALAR")then{
_obj removeAction (_obj getVariable "DLib_arsenal");
if (isClass(configFile >> "CfgPatches" >> "ace_main")) then {
[_obj, true] call ace_arsenal_fnc_removeBox;
};
// Remove arsenal actionId
_obj setVariable ["DLib_arsenal",objNull];
};