Fire::getPedInsideExplosionArea: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Returns a handle to the first entity within the a circle spawned inside the 2 points from a radius. It could return a ped or an entity, but the scripts expect a ped, but still check if it's a ped.
Returns a handle to the first entity within the a circle spawned inside the 2 points from a radius. It could return a ped or an entity, but the scripts expect a ped, but still check if it's a ped.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">fire.getPedInsideExplosionArea(explosionType, x1, y1, z1, x2, y2, z2, radius);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.fire.getPedInsideExplosionArea(explosionType, x1, y1, z1, x2, y2, z2, radius);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''explosionType:''' int
*'''explosionType:''' int
Line 15: Line 15:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Fire_function_c}}
{{Fire_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:06, 6 May 2017

Returns a handle to the first entity within the a circle spawned inside the 2 points from a radius. It could return a ped or an entity, but the scripts expect a ped, but still check if it's a ped.

Syntax

mp.game.fire.getPedInsideExplosionArea(explosionType, x1, y1, z1, x2, y2, z2, radius);

Required Arguments

  • explosionType: int
  • x1: float
  • y1: float
  • z1: float
  • x2: float
  • y2: float
  • z2: float
  • radius: float

Return value

  • Entity handle or object

Example

// todo

See also

Template:Fire s function c