Gameplay::isProjectileTypeWithinDistance

From RAGE Multiplayer Wiki
Revision as of 15:51, 29 April 2024 by Shr0x (talk | contribs) (fixed return value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Checks if a projectile object of the specified type is in a given area

Required Params

  • x: Float
  • y: Float
  • z: Float
  • weaponType: number Weapon hash can be found here -> Weapons
  • distance: Float
  • isPlayer: boolean

Return value

  • boolean

Syntax

mp.game.gameplay.isProjectileTypeWithinDistance(x, y, z, weaponType, distance, isPlayer);

Example

//todo


See also