Creating a object infront of you.
#2

Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &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));
}
Reply


Messages In This Thread
Creating a object infront of you. - by Sal_Kings - 15.10.2009, 16:14
Re: Creating a object infront of you. - by Jefff - 15.10.2009, 17:57
Re: Creating a object infront of you. - by Donny_k - 15.10.2009, 18:19

Forum Jump:


Users browsing this thread: 1 Guest(s)