mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
player_build.sqf enhancements
This commit is contained in:
@@ -295,7 +295,7 @@ if (_hasrequireditem) then {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sleep 0.1;
|
sleep 0.5;
|
||||||
|
|
||||||
_location2 = getPosATL player;
|
_location2 = getPosATL player;
|
||||||
|
|
||||||
@@ -311,12 +311,12 @@ if (_hasrequireditem) then {
|
|||||||
if(_location1 distance _location2 > 5) exitWith {
|
if(_location1 distance _location2 > 5) exitWith {
|
||||||
_isOk = false;
|
_isOk = false;
|
||||||
_cancel = true;
|
_cancel = true;
|
||||||
_reason = "Moving too fast.";
|
_reason = "You've moved to far away from where you started building (within 5 meters).";
|
||||||
detach _object;
|
detach _object;
|
||||||
deleteVehicle _object;
|
deleteVehicle _object;
|
||||||
};
|
};
|
||||||
|
|
||||||
[format["<t size='0.6'>Time left to build: %1</t>",(ceil(_previewCounter))],0,0.8,0.1,0,0,8] spawn BIS_fnc_dynamicText;
|
[format["<t size='0.6'>Time left to build: %1</t>",(ceil(_previewCounter))],0,0.8,0.5,0,0,8] spawn BIS_fnc_dynamicText;
|
||||||
|
|
||||||
if(_previewCounter <= 0) exitWith {
|
if(_previewCounter <= 0) exitWith {
|
||||||
_isOk = false;
|
_isOk = false;
|
||||||
@@ -326,7 +326,7 @@ if (_hasrequireditem) then {
|
|||||||
deleteVehicle _object;
|
deleteVehicle _object;
|
||||||
};
|
};
|
||||||
|
|
||||||
_previewCounter = _previewCounter - 0.1;
|
_previewCounter = _previewCounter - 0.5;
|
||||||
|
|
||||||
if(abs(_objHDiff) > 5) exitWith {
|
if(abs(_objHDiff) > 5) exitWith {
|
||||||
_isOk = false;
|
_isOk = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user