mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 17:39:18 +03:00
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:
@@ -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;
|
||||
Reference in New Issue
Block a user