Controls::setPadShake: Difference between revisions
(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_functions_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 10:56, 14 May 2024
p0 always seems to be 0
duration in milliseconds
frequency should range from about 10 (slow vibration) to 255 (very fast)
appears to be a hash collision, though it does do what it says
example:
SET_PAD_SHAKE(0, 100, 200);
Syntax
mp.game.controls.setPadShake(p0, duration, frequency);
Required Arguments
- p0: int
- duration: int
- frequency: int
Return value
- Undefined
Example
// todo
See also
- mp.game.controls.disableAllControlActions
- mp.game.controls.disableControlAction
- mp.game.controls.enableAllControlActions
- mp.game.controls.enableControlAction
- mp.game.controls.getControlActionName
- mp.game.controls.getControlValue
- mp.game.controls.getControlNormal
- mp.game.controls.getDisabledControlNormal
- mp.game.controls.isControlEnabled
- mp.game.controls.isControlJustReleased
- mp.game.controls.isControlJustPressed
- mp.game.controls.isControlPressed
- mp.game.controls.isControlReleased
- mp.game.controls.isDisabledControlJustReleased
- mp.game.controls.isDisabledControlJustPressed
- mp.game.controls.isDisabledControlPressed
- mp.game.controls.isInputDisabled
- mp.game.controls.isInputJustDisabled
- mp.game.controls.setControlNormal
- mp.game.controls.setInputExclusive
- mp.game.controls.setPadShake
- mp.game.controls.setPlayerpadShakesWhenControllerDisabled
- mp.game.controls.stopPadShake
- mp.game.controls.useDefaultVehicleEntering
- mp.game.controls.setDisableControlActionBatch
- mp.game.controls.applyDisableControlActionBatch