Josh Posted January 2, 2010 Share Posted January 2, 2010 File Name: Input Console File Submitter: Josh File Submitted: 01 Jan 2010 File Category: Lua Scripts Here's a basic console for typing commands into your game. Click here to download this file 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
TylerH Posted January 2, 2010 Share Posted January 2, 2010 Add a SetBlend(0) to line 39 to remove the artifact that occurs when opening/closing the console. 1 Quote nVidia 530M Intel Core i7 - 2.3Ghz 8GB DDR3 RAM Windows 7 Ultimate (64x)----- Visual Studio 2010 Ultimate Google Chrome Creative Suite 5 FL Studio 10 Office 15 ----- Expert Professional Expert BMX Programmer ----- Link to comment Share on other sites More sharing options...
Marleys Ghost Posted January 2, 2010 Share Posted January 2, 2010 Thanks for that pointer Tyler Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted January 2, 2010 Share Posted January 2, 2010 thanks Josh.. Quote AMD Phenom II x6 1100T - 16GB RAM - ATI 5870 HD - OCZ Vertex 2 60GB SSD Link to comment Share on other sites More sharing options...
gordonramp Posted January 3, 2010 Share Posted January 3, 2010 This is Great. I'm wondering how to turn it on and off. I've included it in a simple scene in which I move around. When I hit the tilde button the console appears but has lots of wwwwwwwwwwwwwwwwws in it. Hence my query. How to turn it on only when the Tilde button is pressed. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
Rick Posted January 3, 2010 Share Posted January 3, 2010 Should be able to just create a variable to handle that. Toggle it with the ~ press Quote Link to comment Share on other sites More sharing options...
macklebee Posted January 3, 2010 Share Posted January 3, 2010 Add flushkeys to the existing code: if KeyHit(KEY_TILDE)==1 then consolemode=1-consolemode FlushKeys() end also if you don't want your controller/spectator to be affected when typing in the console, place a check to make sure that the consolemode==0 around any of the controller/spectator code that uses keys for interaction... 1 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Rick Posted January 3, 2010 Share Posted January 3, 2010 This is another reason why things need a editor mode vs game mode. Quote Link to comment Share on other sites More sharing options...
gordonramp Posted January 3, 2010 Share Posted January 3, 2010 Yes, That works. FlushKeys() eh. I'm slowly picking up bits of Lua. Thanks Mack. Quote AMD Athlon x2 7750 2.7ghz, 6gb ddr2 ram, Galaxy9800GT 1gig ddr2 video card, Windows 7,64. Link to comment Share on other sites More sharing options...
macklebee Posted January 3, 2010 Share Posted January 3, 2010 Yes, That works. FlushKeys() eh. I'm slowly picking up bits of Lua. Thanks Mack. glad i could help... i was having the same problem yesterday and had tried all sorts of things... i really like this example script... really nice example that shows how to make something with lua... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.