Gameplay::isProjectileTypeWithinDistance: Difference between revisions
(Created page with "{{ClientsideJsFunction}} {{JSContainer| Checks if a projectile object of the specified type is in a given area ===Required Params=== *'''x:''' {{RageType|Float}} *'''y:''' {{RageType|Float}} *'''z:''' {{RageType|Float}} *'''weaponType:''' {{RageType|number}} Weapon hash can be found here -> Weapons *'''distance:''' {{RageType|Float}} *'''isPlayer:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|number}} ''' ==Syntax== <syntaxhighlight lang="javascript">...") |
(fixed return value) |
||
| Line 11: | Line 11: | ||
===Return value=== | ===Return value=== | ||
*''' {{RageType| | *''' {{RageType|boolean}} ''' | ||
==Syntax== | ==Syntax== | ||
Latest revision as of 15:51, 29 April 2024
Client-Side Function
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