car model rotation HELP
#1

Hi I need the parked car round rotating in z angle smoothly
Like we see car model rotating in GMM and in Otto, s carshowroom
On top of the stairs we see a car model rotating round
I we all saw that at single player
I need that in samp

Sorry for my bad english
Reply
#2

explain more, you need the model? you're going to map it or what?
Reply
#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
#4

thanks let me check its working
Reply
#5

Quote:
Originally Posted by Antoniohl
Посмотреть сообщение
explain more, you need the model? you're going to map it or what?
it means rotating the car model
like in ottos car showroom
u hav seen in singleplayer
Reply
#6

Use /save inside a vehicle and then go to your documents, gta san andreas userfiles and savingpositions.txt. The saved position including the angle should be at the very least.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)