Gameplay::getWindDirection

From RAGE Multiplayer Wiki
Revision as of 09:29, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets wind direction ===Return value=== *''' {{RageType|Vector3}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getWindDirection(); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const windDirection = mp.game.gameplay.getWindDirection(); mp.console.logInfo(`Current wind direction is x: ${windDirection.x} y: ${windDirection.y} z: ${windDirection.z}`); </syntaxhighlight> }} ==See also== {{G...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Gets wind direction

Return value

  • Vector3

Syntax

mp.game.gameplay.getWindDirection();

Example

const windDirection = mp.game.gameplay.getWindDirection();
mp.console.logInfo(`Current wind direction is x: ${windDirection.x} y: ${windDirection.y} z: ${windDirection.z}`);


See also