Math.
#9

i don`t think thats what he wants.

if i understood correctly, you need this function: (from ******)

pawn Код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y,       Float:distance) {                                                       
    new
        vid=GetPlayerVehicleID(playerid),
        Float:a;
    if (vid) {
        GetVehiclePos(vid,x,y,a);
        GetVehicleZAngle(vid, a);
    }
    else {
        GetPlayerPos(playerid, x, y, a);
        GetPlayerFacingAngle(playerid, a);
    }
    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}
then CreateObject with these coordinates
Reply


Messages In This Thread
Math. - by Bessensap - 22.10.2010, 13:45
Re: Math. - by HrvojeCro - 22.10.2010, 13:47
Re: Math. - by LarzI - 22.10.2010, 13:48
Re: Math. - by Bessensap - 22.10.2010, 14:11
Re: Math. - by LarzI - 22.10.2010, 14:47
Re: Math. - by Bessensap - 22.10.2010, 14:49
Re: Math. - by HrvojeCro - 22.10.2010, 15:02
Re: Math. - by Bessensap - 22.10.2010, 15:16
AW: Math. - by Cank - 22.10.2010, 15:17
Re: Math. - by Bessensap - 22.10.2010, 15:20

Forum Jump:


Users browsing this thread: 3 Guest(s)