mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Fix for SetSpawnPoint above Water not working
This commit is contained in:
parent
c5a6b4ab0e
commit
6820969989
@ -117,7 +117,11 @@ if (!isNull _player) then {
|
|||||||
_location = getMarkerPos "respawn_west";
|
_location = getMarkerPos "respawn_west";
|
||||||
_location set[2, 0];
|
_location set[2, 0];
|
||||||
if (_newLocation isEqualType [] && {(count _newLocation) == 3}) then {
|
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 {
|
if !(_jammers isEqualTo[]) then {
|
||||||
// get nearby object
|
// get nearby object
|
||||||
_jammer = _jammers param [0,objNull];
|
_jammer = _jammers param [0,objNull];
|
||||||
|
Loading…
Reference in New Issue
Block a user