mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
New version
asd
This commit is contained in:
parent
050264ca59
commit
7f4fefad00
@ -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;
|
||||
|
BIN
a3_dms.pbo
BIN
a3_dms.pbo
Binary file not shown.
@ -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];
|
||||
|
||||
|
34
scripts/DMS_fnc_nearbyPlayers.sqf
Normal file
34
scripts/DMS_fnc_nearbyPlayers.sqf
Normal 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
|
||||
};
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user