Position behind another player
#2

pawn Код:
stock GetPosBehindPlayer(playerid, Float:distance, &Float:px, &Float:py, &Float:pz,)
{
    GetPlayerPos(playerid, px, py, pz);
    GetPlayerFacingAngle(playerid, pfa);
    px -= (distance * floatsin(-pfa, degrees));
    py -= (distance * floatcos(-pfa, degrees));
    return 1;
}
Reply


Messages In This Thread
Position behind another player - by ajwar - 12.10.2013, 19:05
Re: Position behind another player - by Pottus - 12.10.2013, 19:09
Re: Position behind another player - by xVIP3Rx - 12.10.2013, 19:09

Forum Jump:


Users browsing this thread: 1 Guest(s)