Controls::setPadShake: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
p0 always seems to be 0<br>duration in milliseconds <br>frequency should range from about 10 (slow vibration) to 255 (very fast)<br>appears to be a hash collision, though it does do what it says<br><br>example:<br>SET_PAD_SHAKE(0, 100, 200);
p0 always seems to be 0<br>duration in milliseconds <br>frequency should range from about 10 (slow vibration) to 255 (very fast)<br>appears to be a hash collision, though it does do what it says<br><br>example:<br>SET_PAD_SHAKE(0, 100, 200);
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">controls.setPadShake(p0, duration, frequency);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.controls.setPadShake(p0, duration, frequency);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' int
*'''p0:''' int
Line 10: Line 10:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</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:56, 14 May 2024