SA-MP Forums Archive
[BUG] Vehicle Engine - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [BUG] Vehicle Engine (/showthread.php?tid=194057)



[BUG] Vehicle Engine - Johnny_Xayc - 28.11.2010

When you are driving in the car and turn off the engine, the car is rolling, but you can not steer or brake to use, very convenient.

Please Fix it!Thanks for SA-MP 0.3c


Re: [BUG] Vehicle Engine - Sergei - 28.11.2010

You can break and steer with engine off.


Re: [BUG] Vehicle Engine - Johnny_Xayc - 28.11.2010

but i testing,this don't work,now work Ideal!


Re: [BUG] Vehicle Engine - Johnny_Xayc - 28.11.2010

No!This don't work for me,maybe reason in OnPlayerKeyStateChange ?...


Re: [BUG] Vehicle Engine - The_Moddler - 28.11.2010

Quote:
Originally Posted by Sergei
Посмотреть сообщение
You can break and steer with engine off.
You can't



1. This forum requires that you wait 120 seconds between posts. Please try again in 6 seconds.


Re: [BUG] Vehicle Engine - Kalcor - 28.11.2010

The behaviour of the vehicle engine, lights and alarm is different depending on whether you use ManualVehicleEngineAndLights().

If you use ManualVehicleEngineAndLights and disable the engine while driving, you won't be able to control the car. The reason for this is GTA SA's vehicle physics - it still allows you to accelerate in certain vehicles even with the engine off. We haven't found a better solution to that problem yet.


Re: [BUG] Vehicle Engine - Johnny_Xayc - 28.11.2010

Thanks Kalcor for answer <3 , and maybe don't use ManualVehicleEngineAndLights() and use
pawn Код:
OnGameModeInit()
{
for(new i=1;i<MAX_VEHICLES;i++)
{
       SetVehicleEngine(i,0);//Function start/end engine
       SetVehicleLights(i,0(;// Function controling lights
}
}
Yeah?


Re: [BUG] Vehicle Engine - RoamPT - 28.11.2010

It isn't an bug, what's the point turning your car off when are u driving? I tested this already, and it's good how it is.


Re: [BUG] Vehicle Engine - The_Moddler - 28.11.2010

Quote:
Originally Posted by RoamPT
Посмотреть сообщение
It isn't an bug, what's the point turning your car off when are u driving? I tested this already, and it's good how it is.
It could be useful for roleplay servers..
Example:
You get out of fuel, and you are at 50 meters from a gas station, from the car impulse you can get to the station, but if you can't steer.. you couldn't.


Re: [BUG] Vehicle Engine - [UF]Ultimate - 28.11.2010

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
It could be useful for roleplay servers..
Example:
You get out of fuel, and you are at 50 meters from a gas station, from the car impulse you can get to the station, but if you can't steer.. you couldn't.
Now this is where the real RP comes in, Get out and push xD