Page 1 of 1

Adding buttons to the game

Posted: January 19th, 2012, 4:13 pm
by lzilberm
Hey guys,

I was wondering if anyone knows how I can create a custom little button on the game screen, that does a custom function that I would normally employ using the T button. This way, I wouldn't have to type it out every time. Thank you soooo much guys. :-D

~~lzilberm

Re: Adding buttons to the game

Posted: January 19th, 2012, 5:40 pm
by arcones
What you're talking about is a key bind. Essentially you "bind" a certain function to a key and every time you press that key it executes the function.

Binds are a little complicated as most of the keys already have binds, but there are ways to get around those.

Re: Adding buttons to the game

Posted: January 19th, 2012, 9:28 pm
by lzilberm
Would I have to assign it to a key or could I actually create a visual button?

Re: Adding buttons to the game

Posted: January 20th, 2012, 10:37 am
by arcones
You could assign it to a button. Essentially it would be the same, it would just have to be added onto one of the menus (your custom one probably, if you're creating a game).

Re: Adding buttons to the game

Posted: January 20th, 2012, 2:21 pm
by lzilberm
Unfortunately I have no idea which files in which folders I need to manipulate. If anyone could take me through the following example it would be awesome.

I do the following....
Press "T"....then enter "/mouselook_0" <---this makes it so my mouse replaces the arrow keys to maneuver around the game.
So...how could I bind this command to a letter...or a button?

~~lzilberm

Re: Adding buttons to the game

Posted: January 20th, 2012, 2:28 pm
by arcones
This could be very close to what you're looking for: viewtopic.php?t=3010

Re: Adding buttons to the game

Posted: January 20th, 2012, 5:12 pm
by lzilberm
Yay I got it to work! Thanks for the help everyone!

~~lzilberm

Re: Adding buttons to the game

Posted: January 21st, 2012, 9:13 pm
by chocolatepie33
trying to use /mouselook 0 now, I think it'd be cool if we could use the mouse like some sort of virtual joystick, where you keep going if you hold it in a direction.