Changed to AddCargoItem event

This commit is contained in:
jonpas 2015-08-18 23:43:34 +02:00
parent 3bcebf9033
commit ffb765bf7a

View File

@ -12,7 +12,7 @@
* None
*
* Example:
* _added = [vehicle] call ace_repair_fnc_addSpareParts
* [vehicle] call ace_repair_fnc_addSpareParts
*
* Public: No
*/
@ -42,5 +42,4 @@ if (_part == "") then {
if (_part == "") exitWith {};
// Load
//["LoadItem", [_part, _vehicle]] call EFUNC(cargo,loadItem);
[_part, _vehicle, _amount] call EFUNC(cargo,addItem); // Change to above event
["AddCargoItem", [_part, _vehicle, _amount]] call EFUNC(common,localEvent);