Skip to content

Commit

Permalink
Work on #21
Browse files Browse the repository at this point in the history
  • Loading branch information
Trigger81 authored Jan 12, 2019
1 parent b92069c commit d8b60b8
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions Addons/e12_tools/functions/fnc_actionAdminCreateCrateRadio.sqf
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
#include "script_component.hpp"
PARAMS_1(_unit);

[0,
{
if (isClass (configFile >> "CfgPatches" >> "acre_main")) then {
private["_crate"];
_crate = createVehicle ["Box_NATO_Support_F", _this, [], 0, "NONE"];
_crate setpos (_this modelToWorld [0,2,0]);
_crate setDir ([_crate, _this] call BIS_fnc_dirTo);
_crate allowdamage false;
clearItemCargoGlobal _crate;
clearWeaponCargoGlobal _crate;
clearMagazineCargoGlobal _crate;
clearBackpackCargoGlobal _crate;
_crate addItemCargoGlobal ["ACRE_PRC343", 20];
_crate addItemCargoGlobal ["ACRE_PRC148", 4];
_crate addItemCargoGlobal ["ACRE_PRC152", 4];
_crate addItemCargoGlobal ["ACRE_SEM52SL", 20];
_crate addItemCargoGlobal ["ACRE_PRC117F", 2];
_crate addItemCargoGlobal ["ACRE_PRC77", 2];
_crate addItemCargoGlobal ["ACRE_SEM70", 2];
};
private["_crate"];
_crate = createVehicle ["ACRE_RadioSupplyCrate",getpos _this, [], 0, "NONE"];
_crate setpos (_this modelToWorld [0,2,0]);
_crate setDir ([_crate, _this] call BIS_fnc_dirTo);
_crate allowdamage false;
},
_unit] call CBA_fnc_globalExecute;

0 comments on commit d8b60b8

Please sign in to comment.