if_gm_key


The if_gm_key mission scripting condition triggers when a key is pressed on a game master console. As noted, when monitoring for a letter key, the keyText attribute should be specified as uppercase. SHIFT+letter keypresses must be detected as a sequence of scan codes, and so should be avoided.

 

Unlike client keys, GM keybinds are very reliable, but if_gm_button is still considered the superior option for GM input. A keybind such as "M" is often used as an emergency shortcut to allow the GM to refresh his menu.

 

Attribute

Valid Values

Optional?

Description

keyText

text, single letter (usually upper case)

you only need to use one, either keyText OR value

 

value

0-128 (raw key scan code)