Prevent Keys

Power Type

Prevents certain keys from being pressed.

Type ID: appli:prevent_keys

Note

This power type will only work on players.

Caution

Be careful when testing this power type, as it's easy to softlock yourself. Additionally, keep in mind that you don't want to ever softlock any player via your origin.

Fields

Field Type Default Description
keys Array of Integers optional An array of keycode values that will be prevented.

Examples

{
    "type": "appli:prevent_keys",
    "keys": [
        87,
        65,
        68
    ]
}

This example will make the player unable to press W, A, or D, therefore only letting them move with the S key. See a list of keycode values for more details.