GetVehicleRotationQuat always returning {0.5, 0.5, 0.5, 0.5} after spawning
#1

Hi,,

I have this code:
Код:
CreateVehicle(vehicletype, 0, 0, 5, any_rotation, -1, -1, -1);
new Float:q[4];
GetVehicleRotationQuat(vehicleid, q[0], q[1], q[2], q[3]);
printf("QUAT: %f %f %f %f", q[0], q[1], q[2], q[3]);
This always prints "QUAT: 0.5 0.5 0.5 0.5" when spawning a vehicle with any rotation. I've read somewhere this is a known bug. After a player enters the vehicle it works as it should...

Is there a way to work around this issue?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)