How to get camera Positions???
#1

Hello, I am confused, Is their anyway (or Programm) to get camera positions? I am completly Confused, Please Help
Reply
#2

You are having a Camhack or something like that. You can also just /save ingame. Drive with a Maverick (Camera inside the vehicle with V)
Reply
#3

Quote:
Originally Posted by Las Venturas CNR
Посмотреть сообщение
I think he's talking about creating OnPlayerRequestClass positions and cameras.
Код:
'to get camera positions'
He is saying he want a camera position (X,Y,Z). Or he is explaining it wrong.

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 66 seconds.
Reply
#4

No No, I aint talking about "OnPlayerRequestClass" I am trying to ask how to get camera positions, So I can create an RP Script Tutorial
Reply
#5

Quote:
Originally Posted by seanny
Посмотреть сообщение
No No, I aint talking about "OnPlayerRequestClass" I am trying to ask how to get camera positions, So I can create an RP Script Tutorial
Then read my post.
Reply
#6

Can you change that to either strcmp or DCMD
Reply
#7

pawn Код:
if(!strcmp("/savecampos", cmdtext))
{
    if(!IsPlayerAdmin(playerid)) return 0;
    if(isnull(params)) return SendClientMessage(playerid, COLOR_RED, "Usage: /savecampos [Comment]");
    new path[128], File:ffile, Float:xp, Float:yp, Float:zp;
    GetPlayerCameraPos(playerid, xp, yp, zp);
    ffile = fopen("CamViews.txt", io_append);
    format(path, sizeof(path), "Camera Position: %0.2f %0.2f %0.2f - %s\n", xp, yp, zp, params);
    fwrite(ffile, path);
    fclose(ffile);
    return 1;
}
Untested, and credits to: Las Venturas CNR
Reply
#8

Thx But is it in Dini or what?
Reply
#9

It's making a new .txt file. So no DINI or Y_INI or whatever. It's just creating a new .txt file.
Reply
#10

a very usefull thing:
take a maverick ,fly to the place the camera will be looking from and do /save.
take the maverick or go with your character, to the place the where the camera will be looking at and do /save.

then you do SetCameraPosition and place (x , y, z ) from the first /save
the you do SetCameraLookAt and place (x ,y ,z) from the 2nd /save
That's all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)