Fix for SetSpawnPoint above Water not working

This commit is contained in:
He-Man 2017-07-07 20:43:11 +02:00 committed by GitHub
parent c5a6b4ab0e
commit 6820969989

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];