Skip to content

Commit

Permalink
fixing spawn teleport into start vehicle
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Jan 21, 2019
1 parent 1b6cdba commit 149654d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions BC_setup/functions/client/fn_teleportPlayer.sqf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
10 changes: 5 additions & 5 deletions mission.sqm
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ class EditorData
toggles=1;
class ItemIDProvider
{
nextID=1353;
nextID=1355;
};
class MarkerIDProvider
{
nextID=16;
};
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;
Expand Down

0 comments on commit 149654d

Please sign in to comment.