Cam::setGameplayCamShakeAmplitude: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake. Used in script 'drunk_controller.ysc.c4' to simulate making the player drunk.<br><br>- Shawn | Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake. Used in script 'drunk_controller.ysc.c4' to simulate making the player drunk.<br><br>- Shawn | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">cam.setGameplayCamShakeAmplitude(amplitude);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.cam.setGameplayCamShakeAmplitude(amplitude);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''amplitude:''' float | *'''amplitude:''' float | ||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Cam_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:05, 6 May 2017
Sets the amplitude for the gameplay (i.e. 3rd or 1st) camera to shake. Used in script 'drunk_controller.ysc.c4' to simulate making the player drunk.
- Shawn
Syntax
mp.game.cam.setGameplayCamShakeAmplitude(amplitude);
Required Arguments
- amplitude: float
Return value
- Undefined
Example
// todo