mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-16 05:39:58 +03:00
Merge branch 'master' of https://github.com/vbawol/DayZ-Epoch
This commit is contained in:
@@ -14,7 +14,7 @@ _vehiclePos = aimpos _vehicle;
|
||||
_playerPos = visiblePositionASL player;
|
||||
|
||||
// ignore if distance is too far
|
||||
if((_playerPos distance _vehiclePos) < 10) exitWith {};
|
||||
if((_playerPos distance _vehiclePos) > 10) exitWith {};
|
||||
|
||||
// Important! without this we looking at the players feet this gets us torso area
|
||||
_playerPos set [2,(_playerPos select 2)+1];
|
||||
|
||||
@@ -18,6 +18,8 @@ dayz_combat = 1;
|
||||
if (_ammo isKindOf "Melee") exitWith {
|
||||
_unit playActionNow "GestureSwing";
|
||||
|
||||
[1,1] call dayz_HungerThirst;
|
||||
|
||||
// harvest wood check
|
||||
_id = _this spawn player_harvest;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user