[0.3c RC6] SetVehicleZAngle
#1

SetVehicleZAngle wont work for me at OnVehicleSpawn callback.. . Dont know about other callbacks.
It just sets Vehicle ZAngle to 0..
Can give proof if needed.
Reply
#2

It works nowhere for me...
Reply
#3

Proof
pawn Код:
SetVehiclePos(vehicleid, CarInfo[vehicleid][cLocationx] ,CarInfo[vehicleid][cLocationy], CarInfo[vehicleid][cLocationz]);
printf("Setting Faggio`s Zange to %f", CarInfo[vehicleid][cAngle]);
SetVehicleZAngle(vehicleid, CarInfo[vehicleid][cAngle]);
new Float:zangle;
GetVehicleZAngle(vehicleid,zangle);
printf("Setted. Getting Zange %f", zangle);
Log File lines:
Код:
[16:40:50] Setting Faggio`s Zange to 92.799392
[16:40:50] Setted. Getting Zange 0.000000
I`ll try to recheck everything..
Reply
#4

Let me do a confirm to, have a second

pawn Код:
if(!strcmp("/debugtest",cmdtext,true))
{
    new Float:Angle, vehicleid = CreateVehicle(500,0.0,0.0,0.0,0.0,1,1,-1);
    GetVehicleZAngle(vehicleid,Angle);
    printf("Debug Angle #1 = %f",Angle);
    SetVehicleZAngle(vehicleid,150.0);
    GetVehicleZAngle(vehicleid,Angle);
    printf("Debug Angle #2 = %f",Angle);
    return 1;
}
And the log:

Код:
[18:00:33] Debug Angle #1 = 0.0
[18:00:33] Debug Angle #2 = 0.0
Confirmed.
Reply
#5

maybe.. becausee... u did this? CreateVehicle(500,0.0,0.0,0.0,0.0,1,1,-1);

try again..maybe...this...time...with...a...random...v ehicle..from..loadstatic..vehicles...

instead...of...setting...its..angle....to...0.0... in.."Create...Vehicle"..

^ maybe its a loading problem?
Reply
#6

SetVehicleZangle only works if a player is in the vehicle (its always been like this as far as I know). Instead destroy the vehicle & create it again with the angle you want.
Reply
#7

Quote:
Originally Posted by Lightning[SV]
Посмотреть сообщение
SetVehicleZangle only works if a player is in the vehicle (its always been like this as far as I know). Instead destroy the vehicle & create it again with the angle you want.
Untrue
Reply
#8

I would like to see this fixed as well cause it's pretty annoying, sure it will be fixed in the release.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)