Help with a /engine command.
#1

Hello,

Currently I have a simple toggle variable (0-Off, 1-On) for engine which is toggled when /engine is written by a player.

In this same toggle portion, I use GetVehicleParamsEx and SetVehicleParamsEx with the only difference being the engine portion is either 0 off or 1 on (to actually start and stop it).

However there are issues such as the character automatically trying to turn the engine on when entering the vehicle (but not actually doing it) and if I turn the vehicle off, exit the vehicle, enter it again and /engine, it will freeze the player and not allow keyboard input (like what that TogglePlayerControllable does).

Is there anyway to stop these little bugs, and/or is there callbacks etc where I should be re-calling Get/Set to ensure it doesn't try to change them?
Reply


Messages In This Thread
Help with a /engine command. - by GrimR - 20.09.2011, 08:48
Re: Help with a /engine command. - by Wesley221 - 20.09.2011, 09:19
Re: Help with a /engine command. - by GrimR - 20.09.2011, 09:46
Re: Help with a /engine command. - by Wesley221 - 20.09.2011, 09:47
Re: Help with a /engine command. - by Basicz - 20.09.2011, 10:01
Re: Help with a /engine command. - by GrimR - 20.09.2011, 10:04
Re: Help with a /engine command. - by DRIFT_HUNTER - 20.09.2011, 10:40
Re: Help with a /engine command. - by GrimR - 20.09.2011, 10:56

Forum Jump:


Users browsing this thread: 1 Guest(s)