antanti Posted March 10, 2010 Share Posted March 10, 2010 this is the right function to use when you want to make something happen when a player hits a certain key right?if so could someone link me an example of how this is used, or if its not could someone point me to the right function with this one i have had no luck, i know its an obse function and my cs does launch with obse so thats not the problem Link to comment Share on other sites More sharing options...
QQuix Posted March 10, 2010 Share Posted March 10, 2010 If you want your code to run over and over while the key is pressed, use IsKeyPressed2 or IsKeyPressed3 If you want it to run only once when the key is pressed, use OnKeyDown In both cases, the code is quite straightforward:If IsKeyPressed2 38 ;== L key ;Your code Endif If OnKeyDown 38 ;== L key ;Your code Endif Link to comment Share on other sites More sharing options...
antanti Posted March 10, 2010 Author Share Posted March 10, 2010 wow, thats surprisingly simple thanks so much Link to comment Share on other sites More sharing options...
Recommended Posts