Streaming::setFocusPosAndVel: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Override the area where the camera will render the terrain.<br>p3, p4 and p5 are usually set to 0.0<br> | Override the area where the camera will render the terrain.<br>p3, p4 and p5 are usually set to 0.0<br> | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">streaming.setFocusArea(x, y, z, offsetX, offsetY, offsetZ);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.streaming.setFocusArea(x, y, z, offsetX, offsetY, offsetZ);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''x:''' float | *'''x:''' float | ||
| Line 13: | Line 13: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Streaming_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:32, 6 May 2017
Override the area where the camera will render the terrain.
p3, p4 and p5 are usually set to 0.0
Syntax
mp.game.streaming.setFocusArea(x, y, z, offsetX, offsetY, offsetZ);
Required Arguments
- x: float
- y: float
- z: float
- offsetX: float
- offsetY: float
- offsetZ: float
Return value
- Undefined
Example
// todo