Run into a Wall..
#2

You could use this

Quote:

GetXYInFrontOfPlayer(playerid, &Float, &Float:y, Float:distance)
{
new Float:a;
GetPlayerPos(playerid, x, y, a);
GetPlayerFacingAngle(playerid, a);
if (GetPlayerVehicleID(playerid))
{
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
}
x += (distance * floatsin(-a, degrees));
y += (distance * floatcos(-a, degrees));
}

And this?

Quote:

new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPlayer(playerid, x, y, 5.0);
SetPlayerPos(playerid, x, y, z);

Im not sure
Reply


Messages In This Thread
Run into a Wall.. - by TheNotorius - 16.01.2010, 00:11
Re: Run into a Wall.. - by Fedee! - 16.01.2010, 00:16
Re: Run into a Wall.. - by [HiC]TheKiller - 16.01.2010, 01:20
Re: Run into a Wall.. - by SuperS82 - 16.01.2010, 05:50
Re: Run into a Wall.. - by V1ceC1ty - 16.01.2010, 05:59
Re: Run into a Wall.. - by TheNotorius - 16.01.2010, 06:06
Re: Run into a Wall.. - by jameskmonger - 16.01.2010, 06:10
Re: Run into a Wall.. - by TheNotorius - 16.01.2010, 06:12
Re: Run into a Wall.. - by SuperS82 - 16.01.2010, 06:39
Re: Run into a Wall.. - by TheNotorius - 17.01.2010, 07:14

Forum Jump:


Users browsing this thread: 1 Guest(s)