GetPlayerCameraAngle
#1

Hi guys,

i need a funktion to get the camera angle. I dont know how i should
do that
The funktion should be like GetPlayerFacingAngle but with the players
camera angle.

Anybody a idea?

Tim
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerFacingAngle ?
Reply
#3

You can get both, horizontal and vertical angle with GetPlayerCameraFrontVector and hori=atan2(vx, vy), vert=asin(vz)
Reply
#4

@TzAkS.:

I dont want the PlayersFacingAngle.

I am searching for a funktion that gets the CameraAngle.

Example:

pawn Код:
new Float:Cangle, string[100];
GetPlayerCameraAngle(playerid,Cangle);
format(string, sizeof(string), "Your camera look in this direction: %f",Cangle);
SendClientMes......
@Mauzen:

Wie ich sehe bist du deutsch
Kannst du mir das genauer erklдren?
Reply
#5

Can some say me how to use GetPlayerCameraFrontVector?

I want to set the velocity of a car in this direction where the player is looking
with his camera. Not the Facing or VehicleZAngle.

pawn Код:
new Float:vX, Float:vY, Float:vZ, Float:vA;
new myCar = GetPlayerVehicleID(playerid);
GetVehicleZAngle(myCar, vA);//Here i need the camera rotation
GetVehicleVelocity(myCar,vX,vY, vZ);
SetVehicleVelocity(myCar, vX+=4 * floatsin(-vA, degrees), vY+=4 * floatcos(-vA, degrees), vZ);
Reply
#6

No idea ?
Reply
#7

You ignore Mauzen's suggestion.
Reply
#8

Quote:
Originally Posted by Timmeyable
Посмотреть сообщение
No idea ?
Your question has already been answered my friend; read closely, if still unsure > ****** it.
Reply
#9

Quote:
Originally Posted by Mafioso97
Посмотреть сообщение
if still unsure > ****** it.
I ******d it, this is the best result,,,
Where's your god now?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)