Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,12 @@ while {!(isNil "_group") && count (units _group) > 0} do {\
if(vehicle _x != _x) then {
_v = vehicle _x;
_v setVelocity [0,0,0];
private _playerpos = getpos ((units _v) select 0);
{
[_x,_v,true] call OT_fnc_dumpStuff;
private _dist = _playerpos distance _x;
if (_dist < 10) then {
[_x,_v,true] call OT_fnc_dumpStuff;
}
}foreach(units _v);
};
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ if(_this isKindOf "Man") then {
}else{
_myitems = (itemCargo _this) + (weaponCargo _this) + (magazineCargo _this) + (backpackCargo _this);
{
_myitems = [_myitems,(items _this) + (magazines _this)] call BIS_fnc_arrayPushStack;
}foreach(units _this);
private _playerpos = getpos ((units _v) select 0);
private _dist = _playerpos distance _x;
if (_dist < 10) then {
_myitems = [_myitems,(items _x) + (magazines _x)] call BIS_fnc_arrayPushStack;
}
}foreach(units _this);
};
if !(isNil "_myitems") then {
{
Expand Down