Author Topic: Multiple Key press?  (Read 849 times)

This is kinda hard to explain, but I want to know how I'd make a binding so that by pressing a key twice in succession, it would issue a command.

An example would be pressing Spacebar twice, it'd activate Jets.

Clientside or serverside?

Uhm... It'll be added to a playertype.

Server-side, then. Look at the Flak Cannon for how to detect a quick press/release, edit this to check for two instances with trigger = 2 (Jump, if I remember right) and state = 1 (activated).

Ok, thanks. I'll look into it.

Enabling a player's jets can only be done on the client - but you're wanting to have this double-spacebar-to-jet option available on a per-player-datablock basis. You're mixing client and serverside stuff so it won't really work.

Enabling a player's jets can only be done on the client - but you're wanting to have this double-spacebar-to-jet option available on a per-player-datablock basis. You're mixing client and serverside stuff so it won't really work.

Drat. There goes my whole mod...

Why do you need an odd key combination to enable jets, anyway? It's more understandable if you use the same type of jets everything else has...

Why do you need an odd key combination to enable jets, anyway? It's more understandable if you use the same type of jets everything else has...

I wanted a Mech-Like playertype that would run and jump like normal, but if you double tapped WASD/Spacebar, it'd give you a jet boost. I was trying to free up right-click for alt-fires on all my weapons.

but if you double tapped WASD/Spacebar, it'd give you a jet boost.

Oh so it's not just a jet edit.

Would I be able to use velocities instead of jets?

You could use brick movement controls. o: