Streaming::setFocusPosAndVel
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