[0.3c RC6] SetVehicleZAngle -
GaGlets(R) - 22.12.2010
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.
Re: [0.3c RC6] SetVehicleZAngle -
Jochemd - 22.12.2010
It works nowhere for me...
Re: [0.3c RC6] SetVehicleZAngle -
GaGlets(R) - 22.12.2010
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..
Re: [0.3c RC6] SetVehicleZAngle -
Jochemd - 22.12.2010
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.
Re: [0.3c RC6] SetVehicleZAngle -
The_Gangstas - 22.12.2010
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?
Re: [0.3c RC6] SetVehicleZAngle -
Lightning[SV] - 22.12.2010
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.
Re: [0.3c RC6] SetVehicleZAngle -
Jochemd - 22.12.2010
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
Re: [0.3c RC6] SetVehicleZAngle -
Jochemd - 28.12.2010
I would like to see this fixed as well cause it's pretty annoying, sure it will be fixed in the release.