Need Help Attach Object
#9

Use this function:

pawn Код:
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
Need Help Attach Object - by ServerScripter - 20.02.2012, 11:56
Re: Need Help Attach Object - by JackT - 20.02.2012, 12:15
Re: Need Help Attach Object - by ServerScripter - 20.02.2012, 12:20
Re: Need Help Attach Object - by redreaper666 - 20.02.2012, 12:43
Re: Need Help Attach Object - by ServerScripter - 20.02.2012, 12:55
Re: Need Help Attach Object - by redreaper666 - 20.02.2012, 12:59
Re: Need Help Attach Object - by iTorran - 20.02.2012, 13:01
Re: Need Help Attach Object - by ServerScripter - 20.02.2012, 13:02
Re: Need Help Attach Object - by MP2 - 20.02.2012, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)