Modern Camera ( HELP PLEASE! ) - Get Coordinates on where the Camera is aiming
#2

Maybe this can help you

pawn Код:
GetPosInFrontOfPlayer(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
Modern Camera ( HELP PLEASE! ) - Get Coordinates on where the Camera is aiming - by Aira - 25.05.2012, 13:29
Re: Modern Camera ( HELP PLEASE! ) - Get Coordinates on where the Camera is aiming - by ViniBorn - 25.05.2012, 13:42
Re: Modern Camera ( HELP PLEASE! ) - Get Coordinates on where the Camera is aiming - by WooTFTW - 25.05.2012, 13:46
Re: Modern Camera ( HELP PLEASE! ) - Get Coordinates on where the Camera is aiming - by Aira - 27.05.2012, 10:57

Forum Jump:


Users browsing this thread: 1 Guest(s)