Controls::setControlNormal: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
This is for simulating player input.<br>amount is a float value from 0 - 1<br><br>0, 1 and 2 used in the scripts. 0 is by far the most common of them. | This is for simulating player input.<br>amount is a float value from 0 - 1<br><br>0, 1 and 2 used in the scripts. 0 is by far the most common of them. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">controls.setControlNormal(inputGroup, control, amount);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.controls.setControlNormal(inputGroup, control, amount);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''inputGroup:''' int | *'''inputGroup:''' int | ||
| Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Controls_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:05, 6 May 2017
This is for simulating player input.
amount is a float value from 0 - 1
0, 1 and 2 used in the scripts. 0 is by far the most common of them.
Syntax
mp.game.controls.setControlNormal(inputGroup, control, amount);
Required Arguments
- inputGroup: int
- control: int
- amount: float
Return value
- Boolean
Example
// todo