-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
19 deletions.
There are no files selected for viewing
24 changes: 5 additions & 19 deletions
24
Addons/e12_tools/functions/fnc_actionAdminCreateCrateRadio.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |