mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
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:
parent
dffe73afa8
commit
e310aee27d
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user