Make SpawnPoint on Player Pos

- More accurate to define for Players (bugging through a wall and falling down or hanging stuck in a corner)
This commit is contained in:
He-Man 2017-04-01 17:04:27 +02:00 committed by GitHub
parent 7b2c20ac57
commit dffe73afa8

View File

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