Scripts / Jetpack scripting

Author
Message
Voodoo
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 19th Dec 2013
Location: Germany
Posted: 30th Aug 2014 17:33
hi comunity, would it be possible to activate the jetpack if the space bar is pressed for more than 2 sec?
tomjscott
User Banned
Posted: 31st Aug 2014 16:09
Quote: "hi comunity, would it be possible to activate the jetpack if the space bar is pressed for more than 2 sec?"


As I understand it, you need to hold down both mouse buttons for the jetpack. And the space key is assigned to the jump function. There is no way in the engine to re-assign these functions. With a custom Lua extension module, it might be possible to send input to the engine and thereby allowing a script to use other keystrokes as an alias for the jetpack thruster effect. The idea would be to check for space key being pressed, set a timer that counts for 2 seconds, then sends left/right mouse button down input for as long as the space bar remains down. Omega Core can do the space bar key check, but doesn't currently support sending input although that's something I'm working on trying.

System Specs: OS - Windows 7 Home Premium 64-bit SP1, CPU - AMD Phenom II X4 945, 3.0Ghz, RAM - 8Gb DDR3, GFX Card - 2048MB NVIDIA GeForce GT 640, FPSC-R Version - Beta 1.0071

Login to post a reply

Server time is: 2024-05-03 15:33:17
Your offset time is: 2024-05-03 15:33:17