Game Development Community

Question about GUI, Buttons switching weapons

by Richard Blumenstein · in Torque Game Engine · 07/12/2007 (6:48 pm) · 0 replies

I have created a weapon switching system via mapped keys 0-9. This works great. The problem I am having is that I have a radial button system which I want to highlight what weapon is selected. What it does is selects the button and highlights it, but then does not call the weapon. I am looking for the simple line of code that tells the Engine if I press 3 to select Freeze Weapon, command (press 3). I know that this code (hopefully) should be pretty simple but I cant find any reference saying (keystroke #3) Any info or even pointers on where to look would be greatfully appreciated. I have been looking for about 2 days now and did not find anything that would work.

Richard Blumenstein
www.richardblumenstein.com
ITT Instructor