Cam::clampGameplayCamPitch: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
minimum: Degrees between -90f and 90f.<br>maximum: Degrees between -90f and 90f.<br><br>Clamps the gameplay camera's current pitch.<br><br>Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player.
minimum: Degrees between -90f and 90f.<br>maximum: Degrees between -90f and 90f.<br><br>Clamps the gameplay camera's current pitch.<br><br>Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">cam.clampGameplayCamPitch(minimum, maximum);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.cam.clampGameplayCamPitch(minimum, maximum);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''minimum:''' float
*'''minimum:''' float
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Cam_function_c}}
{{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

minimum: Degrees between -90f and 90f.
maximum: Degrees between -90f and 90f.

Clamps the gameplay camera's current pitch.

Eg. _CLAMP_GAMEPLAY_CAM_PITCH(0.0f, 0.0f) will set the vertical angle directly behind the player.

Syntax

mp.game.cam.clampGameplayCamPitch(minimum, maximum);

Required Arguments

  • minimum: float
  • maximum: float

Return value

  • unknown (to be checked)

Example

// todo

See also

Template:Cam s function c