Teleport script :) need someone to help adjust
This is a code to allow you to spawn every player in the game to your location (20 ft around you)
If anyone could help me so it will teleport only one player to you, even if you need to add the players name to the script.
it would be helpful as i play with a friend and its common that we spawn miles away from each other.
Thanks in advance
Code:
private["_pList", "j", "i", "_pArray", "v", "_dir", "_pos"];
_pList = playableUnits;
j = count _pList;
i = 0;
_pArray = [];
for "i" from 0 to j do
{
v = _pList select i;
// Ignore Self :)
if(player != v) then {
_dir = getdir vehicle player;
_pos = getPos vehicle player;
_pos = [(_pos select 0)-10*sin(_dir),(_pos select 1)-10*cos(_dir),0];
v setPos _pos;
}
};
};
it would be helpful as i play with a friend and its common that we spawn miles away from each other.
Thanks in advance


