Cam::createCameraWithParams: Difference between revisions
(yay) |
(yay) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
CAM::_GET_GAMEPLAY_CAM_COORDS can be used instead of posX,Y,Z<br>CAM::_GET_GAMEPLAY_CAM_ROT can be used instead of rotX,Y,Z<br>CAM::_80EC114669DAEFF4() can be used instead of p7 (Possible p7 is FOV parameter. )<br>p8 ???<br>p9 uses 2 by default<br> | CAM::_GET_GAMEPLAY_CAM_COORDS can be used instead of posX,Y,Z<br>CAM::_GET_GAMEPLAY_CAM_ROT can be used instead of rotX,Y,Z<br>CAM::_80EC114669DAEFF4() can be used instead of p7 (Possible p7 is FOV parameter. )<br>p8 ???<br>p9 uses 2 by default<br> | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">cam.createCameraWithParams(camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.cam.createCameraWithParams(camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''camHash:''' Model hash or name | *'''camHash:''' Model hash or name | ||
| 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:04, 6 May 2017
CAM::_GET_GAMEPLAY_CAM_COORDS can be used instead of posX,Y,Z
CAM::_GET_GAMEPLAY_CAM_ROT can be used instead of rotX,Y,Z
CAM::_80EC114669DAEFF4() can be used instead of p7 (Possible p7 is FOV parameter. )
p8 ???
p9 uses 2 by default
Syntax
mp.game.cam.createCameraWithParams(camHash, posX, posY, posZ, rotX, rotY, rotZ, fov, p8, p9);
Required Arguments
- camHash: Model hash or name
- posX: float
- posY: float
- posZ: float
- rotX: float
- rotY: float
- rotZ: float
- fov: float
- p8: Boolean
- p9: unknown (to be checked)
Return value
- Cam
Example
// todo