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

Thats what i'm asking for, i'm not asking for someone to make it for me.
But i need to know WHAT FUNCTIONS i need to use..
Its
If you have a CAMERA and if you aim at a Certain Locaton - Ground - Building, it will show the COORDINATES ( X Y Z ) of it as a Textdraw on the lower side of the camera. How?
Reply
#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
#3

You should search around forums.
User _niCe_ has already released a function, which detects x,y,z coords where player is looking.
Search for it.
Reply
#4

Quote:
Originally Posted by WooTFTW
Посмотреть сообщение
You should search around forums.
User _niCe_ has already released a function, which detects x,y,z coords where player is looking.
Search for it.
Sorry but can you please give me a link? I Can't really find _niCe_
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)