Jump to content

Streaming::setFocusPosAndVel: Difference between revisions

From RAGE Multiplayer Wiki
yay
Dynn (talk | contribs)
m Help to clear focus after use
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>
'''After moving to another area, you need to clear focus. This can be done using the following native:'''
<syntaxhighlight lang="javascript">mp.game.invoke('0x31B73D1EA9F01DA2');</syntaxhighlight>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mp.game.streaming.setFocusArea(x, y, z, offsetX, offsetY, offsetZ);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.streaming.setFocusArea(x, y, z, offsetX, offsetY, offsetZ);</syntaxhighlight>

Revision as of 15:08, 30 August 2020

Override the area where the camera will render the terrain.
p3, p4 and p5 are usually set to 0.0

After moving to another area, you need to clear focus. This can be done using the following native:

mp.game.invoke('0x31B73D1EA9F01DA2');


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

See also

Template:Streaming s function c