Interface ControlsΒΆ
Usage:
require('openmw.interfaces').Controls
Global(s)
controlsAllowed |
Type Controls
Controls.overrideCombatControls(value) |
When set to true then the controls "attack", "toggle spell", "toggle weapon" are not processed and can be handled by another script. |
Controls.overrideMovementControls(value) |
When set to true then the movement controls including jump and sneak are not processed and can be handled by another script. |
Controls.version |
Interface version |
Global(s)
Type Controls
Field(s)
- Controls.overrideCombatControls(value)
-
When set to true then the controls "attack", "toggle spell", "toggle weapon" are not processed and can be handled by another script.
If combat should be dissallowed completely, consider to use
input.setControlSwitch
instead.Parameter
-
#boolean value
:
-
- Controls.overrideMovementControls(value)
-
When set to true then the movement controls including jump and sneak are not processed and can be handled by another script.
If movement should be dissallowed completely, consider to use
input.setControlSwitch
instead.Parameter
-
#boolean value
:
-
- #number Controls.version
-
Interface version