A Question
#1

How can I get this:

pawn Код:
SetPlayerCameraPos(playerid, 1495.273925, -1675.542358, 28.382812);
SetPlayerCameraLookAt(playerid, 1535.268432, -1675.874023, 13.382812);
SetPlayerPos(playerid, 2641.4473, -2226.9067, 16.2969-30);
It's the position for the LSPD in a tutorial I have already in the game mode, I want to change it, how can I get the SetPlayerCameraPos and SetPlayerCameraLookAt? When I use /save it only saves the X, Y, Z and camera angle position.
Reply
#2

You could make a command which prints the information to the console and then copy the code from the server logs.

pawn Код:
COMMAND:savecam(playerid, params[])
{
    new Float:x, Float:y, Float:z,
        Float:fx, Float:fy, Float:fz;
       
    GetPlayerCameraPos(playerid, x, y, z);
    GetPlayerCameraFrontVector(playerid, fx, fy, fz);
   
    printf("SetPlayerCameraPos(playerid, %f, %f, %f);", x, y, z);
    printf("SetPlayerCameraLookAt(playerid, %f, %f, %f);", (x + fx), (y + fy), (z + fz));
   
    return SendClientMessage(playerid, 0xFFFFFFFF, "Yabba dabba doo");
}
Reply
#3

SetPlayerCameraPos is where you want the camera to be placed in your tutorial. So you can /rs or /save where you want the camera to be. Then you get the XYZ and use those.

SetPlayerCameraLookAt is where you want the camera to be angled and mainly focusing on. To get it, stand where you want your camera to look at, and /rs or /save and paste the XYZ.

Hope this helped.
Reply
#4

You can use THIS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)