Controls::isControlJustReleased: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:


==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">controls.isControlJustReleased(inputGroup, control);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.controls.isControlJustReleased(inputGroup, control);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''inputGroup:''' int
*'''inputGroup:''' int
Line 8: Line 8:
*'''Boolean'''
*'''Boolean'''
==Example==
==Example==
This works on the release of E
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
if (mp.game.controls.isControlJustReleased(0, 38)) {
// Do Stuff Here
}
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Controls_function_c}}
{{Controls_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 10:55, 14 May 2024