Make SpawnPoint on Player Pos + Bugfix

More accurate to define for Players (bugging through a wall and falling down or hanging stuck in a corner)

In EPOCH 0.4, ServerVars was set to [""] in case of wrong _varscount.
If you have it on your character, you are not able to set SpawnPoint.
SO I added a check, if spawnlocation isequaltype []
This commit is contained in:
He-Man 2017-04-01 17:08:21 +02:00 committed by GitHub
parent dffe73afa8
commit e310aee27d

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"], 6];
_jammers = nearestObjects[_newLocation, ["PlotPole_EPOCH"], 6 ];
if !(_jammers isEqualTo[]) then {
// get nearby object
_jammer = _jammers param [0,objNull];