New version

asd
This commit is contained in:
Defent 2015-08-26 20:39:39 +02:00
parent 050264ca59
commit 7f4fefad00
5 changed files with 40 additions and 0 deletions

View File

@ -19,6 +19,8 @@ if(isServer) then {
//DMS_DetectNearWater = true;
//DMS_MissionMin = 60; // Timers in seconds
//DMS_MissionMax = 120; // Timers in seconds
//DMS_player_minDist = 700;
// CONFIGS
uiSleep 2;

Binary file not shown.

View File

@ -9,6 +9,8 @@ _mainTimer = true;
// associate pos with find safe pos
_pos = call DMS_findSafePos;
uiSleep 1;
_missname = "Main Mission 5";
diag_log format ["DMS :: Main Mission 5 started at (%1)",_pos];

View File

@ -0,0 +1,34 @@
DMS_fnc_nearbyPlayers = {
private ["_pos", "_isNearList", "_isNear"];
_pos = [_this, 0, objNull, [objNull,[]], [2,3]] call BIS_fnc_param;
_dis = [_this, 1, DMS_player_minDist, [0]] call BIS_fnc_param;
_isNearList = _pos nearEntities ["Exile_Unit_Player",_dis];
_isNear = false;
// Check for Players
if ((count(_isNearList)) > 0) then {
{
if (isPlayer _x) exitWith {
_isNear = true;
};
false;
} count _isNearList;
};
// Check for Players in Vehicles
if !(_isNear) then {
_isNearList = _pos nearEntities [["LandVehicle", "Air", "Ship"], _dis];
{
if (_isNear) exitWith {};
{
if (isPlayer _x) exitWith {
_isNear = true;
};
false;
} count (crew _x);
false;
} count _isNearList;
};
_isNear
};

View File

@ -21,5 +21,7 @@
// Help from secret skype group.
call compile preprocessfilelinenumbers format["\x\addons\DMS\missions\%1.sqf",_missVar];
uiSleep 2;
//DMS_MissionRunning = 1;