Streaming::streamvolCreateFrustum

From RAGE Multiplayer Wiki
Revision as of 10:06, 23 April 2024 by Shr0x (talk | contribs) (Created page with "__NOTOC__ {{ClientsideJsFunction}} {{JSContainer| Creates a new frustum streaming volume for the specified asset types. === Required Arguments === *'''x''' {{RageType|Float}} *'''y''' {{RageType|Float}} *'''z''' {{RageType|Float}} *'''dirX''' {{RageType|Float}} *'''dirY''' {{RageType|Float}} *'''dirZ''' {{RageType|Float}} *'''flag''' {{RageType|Number}} *'''lodFlag''' {{RageType|Number}} === Return Value === *'''handle''' {{RageType|Handle}} ==Syntax== <pre> mp.game.s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Creates a new frustum streaming volume for the specified asset types.

Required Arguments

  • x Float
  • y Float
  • z Float
  • dirX Float
  • dirY Float
  • dirZ Float
  • flag Number
  • lodFlag Number

Return Value

  • handle Handle

Syntax

mp.game.streaming.streamvolCreateFrustum(x, y, z, dirX, dirY, dirZ, flag, lodFlag);

Example

Client-Side
const {x, y, z} = mp.players.local.position;
const forwardVec = mp.players.local.getForwardVector();
mp.game.streaming.streamvolCreateFrustum(x, y, z, forwardVec.x, forwardVec.y, forwardVec.z, 1, 1);


See also