Cam::addCamSplineNode: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
I filled p1-p6 (the floats) as they are as other natives with 6 floats in a row are similar and I see no other method. So if a test from anyone proves them wrong please correct.<br><br>p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one<br><br>p8 big values ~100 will slow down the camera movement before reaching this node<br><br>p9 != 0 seems to override the rotation/pitch (bool?) | I filled p1-p6 (the floats) as they are as other natives with 6 floats in a row are similar and I see no other method. So if a test from anyone proves them wrong please correct.<br><br>p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one<br><br>p8 big values ~100 will slow down the camera movement before reaching this node<br><br>p9 != 0 seems to override the rotation/pitch (bool?) | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">cam.addCamSplineNode(camera, x, y, z, xRot, yRot, zRot, length, p8, p9);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.cam.addCamSplineNode(camera, x, y, z, xRot, yRot, zRot, length, p8, p9);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''camera:''' int | *'''camera:''' int | ||
| 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
I filled p1-p6 (the floats) as they are as other natives with 6 floats in a row are similar and I see no other method. So if a test from anyone proves them wrong please correct.
p7 (length) determines the length of the spline, affects camera path and duration of transition between previous node and this one
p8 big values ~100 will slow down the camera movement before reaching this node
p9 != 0 seems to override the rotation/pitch (bool?)
Syntax
mp.game.cam.addCamSplineNode(camera, x, y, z, xRot, yRot, zRot, length, p8, p9);
Required Arguments
- camera: int
- x: float
- y: float
- z: float
- xRot: float
- yRot: float
- zRot: float
- length: int
- p8: int
- p9: int
Return value
- Undefined
Example
// todo