mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
15 lines
475 B
Plaintext
15 lines
475 B
Plaintext
|
// by commy2
|
||
|
|
||
|
private ["_vehicle", "_item"];
|
||
|
|
||
|
_vehicle = _this select 0;
|
||
|
|
||
|
_item = ['AGM_JerryCan', [-1000, -1000, 100]] call AGM_Logistics_fnc_spawnObject;
|
||
|
[_vehicle, _item] call AGM_Logistics_fnc_initLoadedObject;
|
||
|
|
||
|
// Do not add spare wheels to light vehicles like quad bikes and karts.
|
||
|
if (getMass _vehicle >= 1000) then {
|
||
|
_item = ['AGM_SpareWheel', [-1000, -1000, 100]] call AGM_Logistics_fnc_spawnObject;
|
||
|
[_vehicle, _item] call AGM_Logistics_fnc_initLoadedObject;
|
||
|
};
|