mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix Error Message
This commit is contained in:
@@ -1,15 +1,22 @@
|
|||||||
private ["_nearByObjects","_targetObject"];
|
private ["_nearByObjects","_targetObject","_error","_range","_objects"];
|
||||||
|
|
||||||
|
_objects = _this select 0;
|
||||||
|
_range = _this select 1;
|
||||||
|
_error = _this select 2;
|
||||||
|
|
||||||
|
|
||||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||||
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
|
_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);
|
||||||
|
|
||||||
_nearByObjects = nearestObjects _this;
|
_nearByObjects = nearestObjects [player,_objects,_range];
|
||||||
|
|
||||||
if (count _nearByObjects == 0) exitWith {
|
if (count _nearByObjects == 0) exitWith {
|
||||||
cutText [(localize "str_epoch_player_8"), "PLAIN DOWN"];
|
cutText [(localize _error), "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
|
|
||||||
_targetObject = _nearByObjects select 0;
|
_targetObject = _nearByObjects select 0;
|
||||||
if (!isNull _targetObject and _canDo) then {
|
if (!isNull _targetObject and _canDo) then {
|
||||||
[0,1,2,_targetObject] spawn player_removeObject;
|
[0,1,2,_targetObject] spawn player_removeObject;
|
||||||
};
|
} else {
|
||||||
|
cutText [(localize _error), "PLAIN DOWN"];
|
||||||
|
};
|
||||||
@@ -24,22 +24,23 @@ if (!isDedicated) then {
|
|||||||
// player_taskHint = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_taskHint.sqf";
|
// player_taskHint = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_taskHint.sqf";
|
||||||
building_spawnZombies = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnZombies.sqf";
|
building_spawnZombies = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnZombies.sqf";
|
||||||
dayz_spaceInterrupt = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\dayz_spaceInterrupt.sqf";
|
dayz_spaceInterrupt = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\dayz_spaceInterrupt.sqf";
|
||||||
//animal_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\animal_monitor.sqf";
|
//animal_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\animal_monitor.sqf";
|
||||||
// building_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\building_monitor.sqf";
|
// building_monitor = compile preprocessFileLineNumbers "\z\addons\dayz_code\system\building_monitor.sqf";
|
||||||
player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf"; //Runs when player fires. Alerts nearby Zeds depending on calibre and audial rating
|
player_fired = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_fired.sqf"; //Runs when player fires. Alerts nearby Zeds depending on calibre and audial rating
|
||||||
player_harvest = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_harvest.sqf";
|
player_harvest = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_harvest.sqf";
|
||||||
player_packTent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_packTent.sqf";
|
player_packTent = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_packTent.sqf";
|
||||||
player_packVault = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_packVault.sqf";
|
player_packVault = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_packVault.sqf";
|
||||||
player_unlockVault = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_unlockVault.sqf";
|
player_unlockVault = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_unlockVault.sqf";
|
||||||
|
|
||||||
player_removeObject = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf";
|
player_removeObject = compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\remove.sqf";
|
||||||
player_removeNearby = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_removeNearby.sqf";
|
player_removeNearby = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\object_removeNearby.sqf";
|
||||||
|
|
||||||
player_removeTankTrap = {
|
player_removeTankTrap = {
|
||||||
[player, ["Hedgehog_DZ"], 1] call player_removeNearby;
|
//Object Array, Range, Error Message (@Skaronator)
|
||||||
|
[["Hedgehog_DZ"], 1,"STR_EPOCH_ACTIONS_14"] call player_removeNearby;
|
||||||
};
|
};
|
||||||
player_removeNet = {
|
player_removeNet = {
|
||||||
[player, ["DesertLargeCamoNet","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ"], 5] call player_removeNearby;
|
[["DesertLargeCamoNet","ForestCamoNet_DZ","DesertLargeCamoNet_DZ","ForestLargeCamoNet_DZ"], 5,"str_epoch_player_8"] call player_removeNearby;
|
||||||
};
|
};
|
||||||
|
|
||||||
player_login = {
|
player_login = {
|
||||||
|
|||||||
Reference in New Issue
Block a user