Difference between revisions of "Key input"

Jump to navigation Jump to search
27 bytes added ,  11:21, 30 May 2006
solved it (as much as that is possible), so put it in solutions category, as well as the useful code category
imported>DragoonWraith
(use IsSneaking and a counter)
imported>DragoonWraith
(solved it (as much as that is possible), so put it in solutions category, as well as the useful code category)
Line 33: Line 33:


:Basically, "switch" gets increased every time the player hits the Ctrl key (or whatever they have "Sneak" mapped to), and if they hit it four times (I figure no one would hit Sneak four times unless they were deliberately trying to), you activate your code to switch weapon mode or night vision or whatever you're doing.
:Basically, "switch" gets increased every time the player hits the Ctrl key (or whatever they have "Sneak" mapped to), and if they hit it four times (I figure no one would hit Sneak four times unless they were deliberately trying to), you activate your code to switch weapon mode or night vision or whatever you're doing.
[[Category: Questions]]
 
[[Category: Useful Code]]
[[Category: Solutions]]

Navigation menu