Merge pull request #775 from Ignatz-HeMan/patch-6

Fix for SetSpawnPoint above Water not working
This commit is contained in:
vbawol 2017-07-08 08:01:59 -05:00 committed by GitHub
commit 5da3a83e11

View File

@ -117,7 +117,11 @@ if (!isNull _player) then {
_location = getMarkerPos "respawn_west";
_location set[2, 0];
if (_newLocation isEqualType [] && {(count _newLocation) == 3}) then {
_jammers = nearestObjects[_newLocation, ["PlotPole_EPOCH"], 6];
_CheckLocation = _newLocation;
if (surfaceiswater _newLocation) then {
_CheckLocation = ATLToASL _newLocation;
};
_jammers = nearestObjects[_CheckLocation, ["PlotPole_EPOCH"], 6];
if !(_jammers isEqualTo[]) then {
// get nearby object
_jammer = _jammers param [0,objNull];