1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //Ammo Resupply Box to be dropped or carried by LAAT or vehicle
- //Created by Rexi
- large_ammo=
- {
- params["_vic"];
- _vic allowDamage false;
- _vic addEventHandler ["HandleDamage", {0}];
- _vic addAction ["<t color='#47FF1A'>Unlock</t>",
- {
- box = _this select 0;
- [box] execVM (boxesQuick+largeAmmo);
- [box] remoteExec ["removeAllActions"];
- }];
- };
- small_ammo=
- {
- params["_vic"];
- _vic allowDamage false;
- _vic addEventHandler ["HandleDamage", {0}];
- _vic addAction ["<t color='#47FF1A'>Unlock</t>",
- {
- box = _this select 0;
- [box] execVM (boxesQuick+smallAmmo);
- [box] remoteExec ["removeAllActions"];
- }];
- };
-
- Large_Medical=
- {
- params["_vic"];
- _vic allowDamage false;
- _vic addEventHandler ["HandleDamage", {0}];
- _vic addAction ["<t color='#47FF1A'>Unlock</t>",
- {
- box = _this select 0;
- [box] execVM (boxesQuick+largeMedical);
- [box] remoteExec ["removeAllActions"];
- }];
- };
- small_Medical=
- {
- params["_vic"];
- _vic allowDamage false;
- _vic addEventHandler ["HandleDamage", {0}];
- _vic addAction ["<t color='#47FF1A'>Unlock</t>",
- {
- box = _this select 0;
- [box] execVM (boxesQuick+smallMedical);
- [box] remoteExec ["removeAllActions"];
- }];
- };
-
-
- ["plp_ct_highsecContRed", "init",Large_Medical, true, [], true] call CBA_fnc_addClassEventHandler;
- ["SWOP_BoxMedium3R", "init",small_Medical, true, [], true] call CBA_fnc_addClassEventHandler;
- ["plp_ct_highsecContWhite", "init",Large_ammo, true, [], true] call CBA_fnc_addClassEventHandler;
- ["SWOP_BoxMedium3W", "init",small_ammo, true, [], true] call CBA_fnc_addClassEventHandler;
|