GetPlayerCameraAngle
#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


Messages In This Thread
GetPlayerCameraAngle - by Timmeyable - 17.10.2012, 12:47
Re: GetPlayerCameraAngle - by TzAkS. - 17.10.2012, 13:05
Re: GetPlayerCameraAngle - by Mauzen - 17.10.2012, 13:09
Re: GetPlayerCameraAngle - by Timmeyable - 17.10.2012, 13:10
Re: GetPlayerCameraAngle - by Timmeyable - 18.10.2012, 07:05
AW: GetPlayerCameraAngle - by Timmeyable - 22.10.2012, 14:09
Re: GetPlayerCameraAngle - by JaKe Elite - 22.10.2012, 14:14
Re: AW: GetPlayerCameraAngle - by Mafioso97 - 22.10.2012, 14:24
Re: AW: GetPlayerCameraAngle - by rt-2 - 06.05.2017, 13:06

Forum Jump:


Users browsing this thread: 4 Guest(s)