Vehicle Ignition System
by Ronald J Nelson · in Torque Game Engine · 08/06/2005 (3:02 am) · 6 replies
Has anyone coded an "On/Off" switch system for vehicle ignition systems yet? I pretty much figured it had to be a bool type function that unless true, the vehicle inputs would not work. Just trying to see if someone beat me to the punch here to save a bit of time. Thanks in advance.
#2
1. Engine on/off allows no radar detection while vehicle is off.
2. I am making a weapon much like the police use to short out an electrical system on a car. What would also be helpful is if someone could tell me how to make a time for this.
08/06/2005 (12:56 pm)
Well if someone could point me in the right direction it would be helpful. I want this for two purposes.1. Engine on/off allows no radar detection while vehicle is off.
2. I am making a weapon much like the police use to short out an electrical system on a car. What would also be helpful is if someone could tell me how to make a time for this.
#3
08/06/2005 (5:29 pm)
I remember discussing this in the mod forum 1 or 2 years ago...can't seem to find the link tough :(
#4
So something like:
08/06/2005 (5:34 pm)
Found, its "disableMove"So something like:
%vehicle.disableMove=1;But like i said, if you do this while driving, the throttle is not reset. For this you'll need to add a little bit of code to the engine that resets the throttle to 0 when "disableMove" is true. The disableMove works fine if your car is standing still when you change the variable tough. Another thing is the sound doesn't stop playing... it just makes it impossible to drive the vehicle untill you set "disableMove" to 0 again.
#5
08/06/2005 (11:33 pm)
Thanks all. That is just what I was looking for.
#6
03/11/2008 (1:25 am)
Has anyone figured out how to reset the throttle?
Torque Owner Very Interactive Person