Controls::enableControlAction: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
control values and meaning: github.com/crosire/scripthookvdotnet/blob/dev/source/scripting/Controls.hpp<br><br>0, 1 and 2 used in the scripts.<br><br>Control values from the decompiled scripts: <br>0,1,2,3,4,5,6,8,9,10,11,14,15,16,17,19,21,22,24,25,26,30,31,32,33,34,35,36,<br>37,44,46,47,59,60,65,68,69,70,71,72,73,74,75,76,79,80,81,82,86,95,98,99,100<br>,101,114,140,141,143,172,173,174,175,176,177,178,179,180,181,187,188,189,19<br>0,195,196,197,198,199,201,202,203,204,205,206,207,208,209,210,217,218,219,2<br>20,221,225,228,229,230,231,234,235,236,237,238,239,240,241,242,245,246,257,<br>261,262,263,264,286,287,288,289,337,338,339,340,341,342,343<br><br>INPUTGROUP_MOVE<br>INPUTGROUP_LOOK<br>INPUTGROUP_WHEEL<br>INPUTGROUP_CELLPHONE_NAVIGATE<br>INPUTGROUP_CELLPHONE_NAVIGATE_UD<br>INPUTGROUP_CELLPHONE_NAVIGATE_LR<br>INPUTGROUP_FRONTEND_DPAD_ALL<br>INPUTGROUP_FRONTEND_DPAD_UD<br>INPUTGROUP_FRONTEND_DPAD_LR<br>INPUTGROUP_FRONTEND_LSTICK_ALL<br>INPUTGROUP_FRONTEND_RSTICK_ALL<br>INPUTGROUP_FRONTEND_GENERIC_UD<br>INPUTGROUP_FRONTEND_GENERIC_LR<br>INPUTGROUP_FRONTEND_GENERIC_ALL<br>INPUTGROUP_FRONTEND_BUMPERS<br>INPUTGROUP_FRONTEND_TRIGGERS<br>INPUTGROUP_FRONTEND_STICKS<br>INPUTGROUP_SCRIPT_DPAD_ALL<br>INPUTGROUP_SCRIPT_DPAD_UD<br>INPUTGROUP_SCRIPT_DPAD_LR<br>INPUTGROUP_SCRIPT_LSTICK_ALL<br>INPUTGROUP_SCRIPT_RSTICK_ALL<br>INPUTGROUP_SCRIPT_BUMPERS<br>INPUTGROUP_SCRIPT_TRIGGERS<br>INPUTGROUP_WEAPON_WHEEL_CYCLE<br>INPUTGROUP_FLY<br>INPUTGROUP_SUB<br>INPUTGROUP_VEH_MOVE_ALL<br>INPUTGROUP_CURSOR<br>INPUTGROUP_CURSOR_SCROLL<br>INPUTGROUP_SNIPER_ZOOM_SECONDARY<br>INPUTGROUP_VEH_HYDRAULICS_CONTROL<br><br><br>Took those in IDA Pro.Not sure in which order they go
{{ClientsideJsFunction}}
Enables a control so it can be used.
 
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">controls.enableControlAction(inputGroup, control, enable);</syntaxhighlight>
<pre>mp.game.controls.enableControlAction(inputGroup, control, enable);</pre>
 
=== Required Arguments ===
=== Required Arguments ===
*'''inputGroup:''' int
*'''inputGroup:''' {{RageType|Int}} ([[InputGroup|Input Groups]])
*'''control:''' int
*'''control:''' {{RageType|Int}} ([[Controls|Game Controls]])
*'''enable:''' Boolean
*'''enable:''' {{RageType|Boolean}}
 
===Return value===
===Return value===
*'''Undefined'''
*'''Undefined'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
<pre>
todo
// todo
</syntaxhighlight>
</pre>
 
==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