Cam::createCamWithParams: Difference between revisions
(yay) |
(yay) |
||
| 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. | 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== | ==Syntax== | ||
<syntaxhighlight lang="javascript">cam.createCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.cam.createCamWithParams(camName, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''camName:''' String | *'''camName:''' String | ||
| Line 17: | Line 17: | ||
==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
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