Rotating a vehicle
#6

Use a Timer..

Код:
//OnGameModeInit:

SetTimer("RotateVehicle", 1000, 1);

// e.g. bottom of your script:

forward RotateVehicle();
public RotateVehicle()
{
new Float:angle;
GetVehicleZAngle(vehicleid, angle);
SetVehicleZAngle(vehicleid, angle + 5.0); // Turn vehicleid by 5 degrees
}
The vehicle ("vehicleid" has to be replaced by your ID) will now turn by 5 degrees every second.
Reply


Messages In This Thread
Rotating a vehicle - by Wizzy951 - 06.02.2014, 17:51
Re: Rotating a vehicle - by Wizzy951 - 07.02.2014, 21:55
Re: Rotating a vehicle - by Ari - 07.02.2014, 22:40
Re: Rotating a vehicle - by Wizzy951 - 07.02.2014, 22:48
Re: Rotating a vehicle - by Wizzy951 - 09.02.2014, 16:27
AW: Rotating a vehicle - by NaS - 09.02.2014, 17:22
Re: AW: Rotating a vehicle - by LiamM - 09.02.2014, 17:57
Re: Rotating a vehicle - by Wizzy951 - 09.02.2014, 20:01
Re: Rotating a vehicle - by LiamM - 09.02.2014, 21:08
Re: Rotating a vehicle - by cessil - 09.02.2014, 23:34

Forum Jump:


Users browsing this thread: 4 Guest(s)