Bitfield. MetaKeys are "none"(0), "shift"(1), "control"(2), "alt"(4) and "META"(8) (Windows key). They can be combined 2 + 4 = 6. The player needs to hold all specified metakeys to trigger the event.
If keyDown = false: trigger is called once when key is released (unpressed). If keyDown = true: calls trigger repeatedly while key is being held down. In V1.31.1 this happens once. In V1.32.10 repeats until released at approximately 30 times per second and fluctuating.
1.31
Generated using TypeDoc
Registers event to call trigger when player presses a key + metakey. Key presses are synced by the game between players automatically.
Meta keys are modifier keys like CTRL, SHIFT, ALT. See
BlzGetTriggerPlayerMetaKey. If you just want a key press without them, use 0.Example (Lua):