Vehicle rotation
#1

How i can do this with vehicle?
[ame]http://www.youtube.com/watch?v=76MIkBZOyT0[/ame]

I trayed with timer every 100ms using setvehiclezangle but with bad results.
Reply
#2

https://sampwiki.blast.hk/wiki/SetVehicleAngularVelocity

Код:
if (!strcmp("/spin", cmdtext))
{
	if(IsPlayerInAnyVehicle(playerid))
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 2.0);
	return 1;
}
Reply
#3

//edit it works
Reply
#4

idk if that will work
try

Код:
    new Float:zangle;
    new v = GetPlayerVehicleID(playerid);
    GetVehicleZAngle(v, zangle);
    if(zangle == 45)
    {
          SetVehicleAngularVelocity(v , 0.0, 0.0, 0.0);        
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)