Cam::createCamWithParams: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
camName is always set to 'DEFAULT_SCRIPTED_CAMERA' in Rockstar's scripts.<br>------------<br>Camera names found in the b617d scripts:<br>'DEFAULT_ANIMATED_CAMERA'<br>'DEFAULT_SCRIPTED_CAMERA'<br>'DEFAULT_SCRIPTED_FLY_CAMERA'<br>'DEFAULT_SPLINE_CAMERA'<br>------------<br>Side Note: It seems p8 is basically to represent what would be the bool p1 within CREATE_CAM native. As well as the p9 since it's always 2 in scripts seems to represent what would be the last param within SET_CAM_ROT native which normally would be 2.==Syntax==<syntaxhighlight lang="javascript">cam.createCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight>=== Required Arguments ===*'''camName:''' String*'''posX:''' float*'''posY:''' float*'''posZ:''' float*'''rotX:''' float*'''rotY:''' float*'''rotZ:''' float*'''fov:''' float*'''p8:''' Boolean*'''p9:''' int===Return value===*'''Cam'''==Example==<syntaxhighlight lang="javascript">todo</syntaxhighlight>==See also=={{Cam_function_c}}[[Category:Clientside API]][[Category:TODO: Example]]
camName is always set to 'DEFAULT_SCRIPTED_CAMERA' in Rockstar's scripts.<br>------------<br>Camera names found in the b617d scripts:<br>'DEFAULT_ANIMATED_CAMERA'<br>'DEFAULT_SCRIPTED_CAMERA'<br>'DEFAULT_SCRIPTED_FLY_CAMERA'<br>'DEFAULT_SPLINE_CAMERA'<br>------------<br>Side Note: It seems p8 is basically to represent what would be the bool p1 within CREATE_CAM native. As well as the p9 since it's always 2 in scripts seems to represent what would be the last param within SET_CAM_ROT native which normally would be 2.
==Syntax==
<syntaxhighlight lang="javascript">mp.game.cam.createCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight>
=== Required Arguments ===
*'''camName:''' String
*'''posX:''' float
*'''posY:''' float
*'''posZ:''' float
*'''rotX:''' float
*'''rotY:''' float
*'''rotZ:''' float
*'''fov:''' float
*'''p8:''' Boolean
*'''p9:''' int
===Return value===
*'''Cam'''
==Example==
<syntaxhighlight lang="javascript">
// todo
</syntaxhighlight>
==See also==
{{Cam_s_function_c}}
[[Category:Clientside API]]
[[Category:TODO: Example]]

Latest revision as of 21:05, 6 May 2017

camName is always set to 'DEFAULT_SCRIPTED_CAMERA' in Rockstar's scripts.
------------
Camera names found in the b617d scripts:
'DEFAULT_ANIMATED_CAMERA'
'DEFAULT_SCRIPTED_CAMERA'
'DEFAULT_SCRIPTED_FLY_CAMERA'
'DEFAULT_SPLINE_CAMERA'
------------
Side Note: It seems p8 is basically to represent what would be the bool p1 within CREATE_CAM native. As well as the p9 since it's always 2 in scripts seems to represent what would be the last param within SET_CAM_ROT native which normally would be 2.

Syntax

mp.game.cam.createCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);

Required Arguments

  • camName: String
  • posX: float
  • posY: float
  • posZ: float
  • rotX: float
  • rotY: float
  • rotZ: float
  • fov: float
  • p8: Boolean
  • p9: int

Return value

  • Cam

Example

// todo

See also

Template:Cam s function c