Update object revealing

This replaces 'player reveal object' with a function that acutal reveals the objects to the player. This fixes that objects were not usable after building.
This commit is contained in:
A Man
2022-05-18 18:14:22 +02:00
parent f4d770c617
commit 0799e7e183
8 changed files with 21 additions and 17 deletions

View File

@@ -36,8 +36,9 @@ if (_item == dayz_onBack && carryClick) then {
_item = if (_droppedType == "") then {_this} else {_droppedType};
};
[format["WeaponHolder_%1",_item],objNull] call fn_waitForObject;
_bag = createVehicle [format["WeaponHolder_%1",_item],getPosATL player,[], 1, "CAN_COLLIDE"];
_bag modelToWorld getPosATL player;
_bag setDir (getDir player);
player reveal _bag;
dayz_actionInProgress = false;