Controls::isControlJustReleased: Difference between revisions
(yay) |
|||
| Line 8: | Line 8: | ||
*'''Boolean''' | *'''Boolean''' | ||
==Example== | ==Example== | ||
This works on the release of E | |||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
// | if (mp.game.controls.isControlJustReleased(0, 38)) { | ||
// Do Stuff Here | |||
} | |||
</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 00:15, 3 February 2019
Syntax
mp.game.controls.isControlJustReleased(inputGroup, control);
Required Arguments
- inputGroup: int
- control: int
Return value
- Boolean
Example
This works on the release of E
if (mp.game.controls.isControlJustReleased(0, 38)) {
// Do Stuff Here
}