Difference between revisions of "Key input"
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: | |||
[[Category: Useful Code]] | |||
[[Category: Solutions]] |