SetWheelSteering Command
by John Fullington · in Torque Game Engine · 11/30/2006 (7:00 pm) · 2 replies
Can anyone tell me why this command does not work in the console?
Thanks
DefaultCar.setWheelSteering(0,1);
Thanks
#2
Your problem is that DefaultCar is the name of the datablock, not the name of your car. Go into the editor (hit F11) and have a look for your car object. It should have a red dot at its centre with a number beside it. That's the object ID.
Try putting the same thing in the console, but with the object ID number instead of DefaultCar.
If you select the car in the editor, you can give it a name - maybe call it MyCar or something. Then in the console you can type MyCar.doSomething();
Also, have a look at my profile and find the resource on WheeledVehicles - it might give you some ideas to play around with :)
08/07/2009 (8:54 pm)
Actually, the second parameter is a variable. Try setting it to -1 to get the wheel steering the opposite way to which you input.Your problem is that DefaultCar is the name of the datablock, not the name of your car. Go into the editor (hit F11) and have a look for your car object. It should have a red dot at its centre with a number beside it. That's the object ID.
Try putting the same thing in the console, but with the object ID number instead of DefaultCar.
If you select the car in the editor, you can give it a name - maybe call it MyCar or something. Then in the console you can type MyCar.doSomething();
Also, have a look at my profile and find the resource on WheeledVehicles - it might give you some ideas to play around with :)
Torque Owner Jonathan Noyola
Fisticuff Games
DefaultCar.setWheelSteering(0, "1");
or
DefaultCar.setWheelSteering(0, true);