car model rotation HELP
#3

You can by incrementing the CURRENT ROTATION by a very small amount and putting it in a timer. Remember rotation variablr should be a float and global variable...

An example
Код:
new Float:zrot = 50.0;// say 50 is the start declare it outside the function

forward UpdateVehicleAngle(vehicleid);
public UpdateVehicleAngle(vehicleid)
{
zrot += 0.002;
SetVehicleZAngle(vehicleid,zrot);
return 1;
}

/*timer*/
SetTimerEx("UpdateVehicleAngle",500,1,"d",vehicleid); // use this where you want to start updating the rotation
Remember pass the id of the vehicle you created at the position.

This will rotate car in 0.1 second by the current cars z rotation value plus some small value
so if you want slow rotation you can slow down the timer

1000millisec = 1 second
500millisec = 0.1 second
Reply


Messages In This Thread
car model rotation HELP - by FenilX - 24.02.2015, 18:41
Re: car model rotation HELP - by Antoniohl - 24.02.2015, 21:58
Re: car model rotation HELP - by -=Dar[K]Lord=- - 25.02.2015, 06:56
Re: car model rotation HELP - by FenilX - 04.03.2015, 22:31
Re: car model rotation HELP - by FenilX - 04.03.2015, 22:34
Re: car model rotation HELP - by Write - 04.03.2015, 23:15

Forum Jump:


Users browsing this thread: 3 Guest(s)