Controls::disableAllControlActions: Difference between revisions
(yay) |
|||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.events.add('render', () => { | |||
if(condition) mp.game.controls.disableAllControlActions(2); | |||
}); | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{Controls_s_function_c}} | {{Controls_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 20:32, 29 September 2017
Syntax
mp.game.controls.disableAllControlActions(inputGroup);
Required Arguments
- inputGroup: int
Return value
- Undefined
Example
mp.events.add('render', () => {
if(condition) mp.game.controls.disableAllControlActions(2);
});