[BUG] Vehicle angles not setting properly

Started by EK.IceFlake, Jan 23, 2015, 09:06 PM

Previous topic - Next topic

EK.IceFlake

I tried to copy the vehicle angles from 0.3zr2 pawn (my system not have bugs) all the vehicles become in the same place but their angle is not correct. The angles are exactly the same of what worked perfectly in 0.3zr2 pawn. I use directly the angle function in CreateVehicle. Help with be appreciated.


EK.IceFlake

Quote from: Fuzzie on Jan 24, 2015, 12:10 AM
Quote from: NE.CrystalBlueI use directly the angle function in CreateVehicle
by that I mean: CreateVehicle(...,..., angle, ..., ...);

MatheuS

CreateVehicle( 191, Vector( player.Pos.x, player.Pos.y, player.Pos.z ), player.Angle, 0, 0 );
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

EK.IceFlake

Quote from: NE.CrystalBlue on Jan 24, 2015, 05:18 AM
Quote from: Fuzzie on Jan 24, 2015, 12:10 AM
Quote from: NE.CrystalBlueI use directly the angle function in CreateVehicle
by that I mean: CreateVehicle(...,..., angle, ..., ...);
Cant anyone understand me!
I use the CreateVehicle( 191, Vector( player.Pos.x, player.Pos.y, player.Pos.z ), player.Angle, 0, 0 ); I use player.Angle part, the angle sets (I copied angles from 0.3zr2 pawn) but it isnt the correct angle that sets

Fuzzie

#5
CreateVehicle( veh, player.World, player.Pos, player.Angle, 0, 0 );
This worked perfectly fine for me.

Gudio

Please notice that degrees are not supported, but radians. You can write a function that converts degrees to radians.


Stormeus