Gameplay::isProjectileInArea: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Determines whether there is a projectile within the specified coordinates. The coordinates form a rectangle.<br><br>- Nacorpio<br><br><br>ownedByPlayer = only projectiles fired by the player will be detected.
Determines whether there is a projectile within the specified coordinates. The coordinates form a rectangle.<br><br>- Nacorpio<br><br><br>ownedByPlayer = only projectiles fired by the player will be detected.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.isProjectileInArea(x1, y1, z1, x2, y2, z2, ownedByPlayer);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.isProjectileInArea(x1, y1, z1, x2, y2, z2, ownedByPlayer);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x1:''' float
*'''x1:''' float
Line 14: Line 14:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:06, 6 May 2017

Determines whether there is a projectile within the specified coordinates. The coordinates form a rectangle.

- Nacorpio


ownedByPlayer = only projectiles fired by the player will be detected.

Syntax

mp.game.gameplay.isProjectileInArea(x1, y1, z1, x2, y2, z2, ownedByPlayer);

Required Arguments

  • x1: float
  • y1: float
  • z1: float
  • x2: float
  • y2: float
  • z2: float
  • ownedByPlayer: Boolean

Return value

  • Boolean

Example

// todo

See also

Template:Gameplay s function c