Hey guys, I'm working on a code and need a little help. I need to be able to get the position of all other players on a server. Any advice on how to do this? I honestly have no clue where to start.
My code here makes a goat chase the local player (me) and after a set amount of time blows up.
This creates the goat and "explodes" it after a time.
_shelltype = "Sh_105_HE";
_veh = createVehicle ["Goat02_EP1" , position player, [], 0, "NONE"];
_move = _veh execVM "\Scripts\Move.sqf";
sleep 30;
terminate _spawn;
_pos = getpos player;
_shelltype createVehicle [_pos select 0, _pos select 1, (_pos select 2) +5]
deleteVehicle _veh;
This moves the goat with the player and also rotates the same as the player
while {1 == 1} do
{
_pos = getpos player;
_rot = getDir player;
_this setDir _rot;
_this setpos [_pos select 0, (_pos select 1) +2, (_pos select 2) +1]
};
All I need now is a way to get another players position.