I dont want a free ride, just some help please
by Dion Bailey · in Torque Game Engine · 04/26/2003 (2:21 pm) · 3 replies
Before reading, im not looking for an easy ride, all the things listed are things ive been trying for a while but i cant seem to get them to work, ive got to hand this game in by thursday and these things are all that stands in my way. So any help is much appreciated.
1. ive got a window and have set two radio buttons within the window. I cant seem to get which button being chosen. I tried to set a varible to variable field but nothing happend.
i even tried to set a function to the command field so it would call the function and set a variable but no joy. i just need to know which radio button was selected.
2. Is there a way to delay other than using a shedule. ive got a loop which i want to delay for four seconds before going around again, but my shedule isnt working. it works outside the function but not inside.
3. can you print to the console from the engine files. i just want to check im getting a particular value from the script. ive made my console function which seems to work, but i would like to echo to the console.
4.ive been trying to add interior omni lighting to my interior room, but its not working. the guide in the documentation said to just place it in position, but this isnt working. is there any procedure which must be followed to set up lights.
1. ive got a window and have set two radio buttons within the window. I cant seem to get which button being chosen. I tried to set a varible to variable field but nothing happend.
i even tried to set a function to the command field so it would call the function and set a variable but no joy. i just need to know which radio button was selected.
2. Is there a way to delay other than using a shedule. ive got a loop which i want to delay for four seconds before going around again, but my shedule isnt working. it works outside the function but not inside.
3. can you print to the console from the engine files. i just want to check im getting a particular value from the script. ive made my console function which seems to work, but i would like to echo to the console.
4.ive been trying to add interior omni lighting to my interior room, but its not working. the guide in the documentation said to just place it in position, but this isnt working. is there any procedure which must be followed to set up lights.
About the author
#3
04/28/2003 (6:03 pm)
Thanks guys for the help, i managed to get it all working. once again thanks.
Torque Owner Kevin Ostrowski
command = "$RadioButtonSelect = \"Button1\";";
Also make sure you have the buttons assigned to the same group Now you can get $RadioButtonSelect
[if($RadioButtonSelect $= "Button1";]
in your functions after one of the buttons is checked.
2) I haven't used the schedule function too much but I know you have to make sure your passing the object to it.
ie: %obj.schedule();
3) I'm not sure.
4) I'm not sure what program you are using to make your interiors, but in Quark it's pretty simple to add an omni light.
take a look at this resource.