mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Small tweak for Looting
This commit is contained in:
parent
86a02a7f09
commit
78d326b711
@ -38,7 +38,6 @@ _masterConfig = getmissionconfig "CfgBuildingLootPos";
|
|||||||
_item setvariable ["Epoch_ParentBuilding",_building];
|
_item setvariable ["Epoch_ParentBuilding",_building];
|
||||||
_buildingLoot pushback _item;
|
_buildingLoot pushback _item;
|
||||||
_item setDir _dir;
|
_item setDir _dir;
|
||||||
_item setowner (owner _player); // switch owner for better simulations on looting
|
|
||||||
_privateDir pushback [_item,_dir];
|
_privateDir pushback [_item,_dir];
|
||||||
if (surfaceIsWater _pos) then {
|
if (surfaceIsWater _pos) then {
|
||||||
_item setPosASL _pos;
|
_item setPosASL _pos;
|
||||||
@ -76,5 +75,8 @@ _masterConfig = getmissionconfig "CfgBuildingLootPos";
|
|||||||
};
|
};
|
||||||
} foreach _LootsArray;
|
} foreach _LootsArray;
|
||||||
if !(_privateDir isEqualTo []) then {
|
if !(_privateDir isEqualTo []) then {
|
||||||
|
{
|
||||||
|
(_x select 0) setowner (owner _player); // switch owner for better simulations on looting
|
||||||
|
} foreach _privateDir;
|
||||||
_privateDir remoteexec ['Epoch_fnc_SetFinalDir',_player];
|
_privateDir remoteexec ['Epoch_fnc_SetFinalDir',_player];
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user