From 149654d3f1e3ce3df14bd62188006a8f8af80c6f Mon Sep 17 00:00:00 2001 From: nomisum Date: Mon, 21 Jan 2019 23:56:53 +0100 Subject: [PATCH] fixing spawn teleport into start vehicle --- BC_setup/functions/client/fn_teleportPlayer.sqf | 4 ++-- mission.sqm | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BC_setup/functions/client/fn_teleportPlayer.sqf b/BC_setup/functions/client/fn_teleportPlayer.sqf index 87294730..d4cb0a72 100644 --- a/BC_setup/functions/client/fn_teleportPlayer.sqf +++ b/BC_setup/functions/client/fn_teleportPlayer.sqf @@ -1,12 +1,12 @@ #include "\z\ace\addons\main\script_component.hpp" -params ["_position"]; +params ["_position", "_distance"]; ["Preparing teleport..."] call EFUNC(common,displayTextStructured); cutText ["", "BLACK OUT", 0.1]; if (str player != "opfor_teamlead") then { sleep (random 7);}; -private _emptyPosition = _position findEmptyPosition[2, 20, "B_Soldier_F"]; +private _emptyPosition = _position findEmptyPosition[10, _distance, "B_Soldier_F"]; diag_log format ["teleporting %1 to %2.", player, _emptyPosition]; sleep 1; diff --git a/mission.sqm b/mission.sqm index 6d661152..4b4e6585 100644 --- a/mission.sqm +++ b/mission.sqm @@ -8,7 +8,7 @@ class EditorData toggles=1; class ItemIDProvider { - nextID=1353; + nextID=1355; }; class MarkerIDProvider { @@ -16,10 +16,10 @@ class EditorData }; class Camera { - pos[]={1615.6736,29.097382,5295.0664}; - dir[]={-0.29247653,-0.67179215,0.68073797}; - up[]={-0.26519951,0.74070942,0.61725014}; - aside[]={0.91889763,8.2841143e-007,0.39479336}; + pos[]={1611.7966,9.5712538,5313.6001}; + dir[]={-0.47132915,-0.31366354,0.82444853}; + up[]={-0.15572304,0.94949061,0.2723898}; + aside[]={0.86825103,-2.0944572e-006,0.49636275}; }; }; binarizationWanted=0;