mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Players are able to use flares inside a vehicle now
Also remove FNC_GetSetPos. It is no longer needed or used. Made by @Victor-the-Cleaner
This commit is contained in:
@@ -1,9 +1,3 @@
|
||||
private "_pos";
|
||||
|
||||
_pos = getPosASL (_this select 0);
|
||||
|
||||
if !(surfaceIsWater _pos) then {
|
||||
_pos = ASLToATL _pos;
|
||||
};
|
||||
|
||||
_pos
|
||||
local _pos = getPosATL (_this select 0);
|
||||
if (surfaceIsWater _pos) then {_pos = ATLToASL _pos;};
|
||||
_pos
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
//DO NOT USE IF YOU NEED ANGLE COMPENSATION!!!!
|
||||
private["_params","_thingy","_isATL","_pos"];
|
||||
|
||||
_params = count _this;
|
||||
_thingy = _this select 0;
|
||||
_isATL = false;
|
||||
|
||||
if (_params > 1) then {
|
||||
_pos = _this select 1;
|
||||
if (_params > 2) then {
|
||||
_isATL = _this select 2;
|
||||
};
|
||||
} else {
|
||||
_pos = getPosASL _thingy;
|
||||
};
|
||||
|
||||
if (surfaceIsWater _pos) then {
|
||||
if (_isATL) then {
|
||||
_thingy setPosASL (ATLToASL _pos);
|
||||
} else {
|
||||
_thingy setPosASL _pos;
|
||||
};
|
||||
} else {
|
||||
if (_isATL) then {
|
||||
_thingy setPosATL _pos;
|
||||
} else {
|
||||
_thingy setPosATL (ASLToATL _pos);
|
||||
};
|
||||
};
|
||||
|
||||
_pos;
|
||||
Reference in New Issue
Block a user