SetPlayerCameraPos ??
#1

How to set camera to look like (camera when player aim) ?
Reply
#2

I didn't understand you..what do you mean?
you want a camera to look like a camera?
Reply
#3

When player have gun and press Right Mouse Button camera with aim appears i want recreate that camera.
to act same. but be called with command.

I try
pawn Код:
GetPlayerCameraPos(player,x,y,z);
GetXYinFront(playerid,x,y,1.0);
SetPlayerCameraPos(player,x,y,z);
But i have no action on camera pos.
Reply
#4

you mean crosshair?the 4 lines or the dot which helps you to AIM?
Simply create textdraws like 4 lines and show them while player is pressing Right Click
Reply
#5

No, i need position of camera when aim. not cross-hair.

May be this help to understand

Quote:

GetPlayerCameraPos(player,x,y,z);
GetXYinFront(playerid,x,y,1.0);
SetPlayerCameraPos(player,x,y,z);

Reply
#6

You want to know where the player is shooting/aiming?
Or do you want the position where he has his camera?

If you want the pos of the camera the code is
pawn Код:
new Float:x, Float:y, Float:z;
    GetPlayerCameraPos(playerid, x, y, z);
 
    new string[128];
    format(string, 128, "Position of the camera is %f, %f, %f", x, y, z);
    print(string);
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)