Streaming::setFocusPosAndVel

From RAGE Multiplayer Wiki
Revision as of 15:08, 30 August 2020 by Dynn (talk | contribs) (Help to clear focus after use)

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