Перейти к содержанию

Entity::isInAngledArea

Материал из RAGE MP Wiki Archive

Creates a spherical cone at origin that extends to surface with the angle specified. Then returns true if the entity is inside the spherical cone

Angle is measured in degrees.
These values are constant, most likely bogus:
p8 = 0, p9 = 1, p10 = 0

This method can also take two float<3> instead of 6 floats.

Syntax

<syntaxhighlight lang="javascript">entity.isInAngledArea(originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10);</syntaxhighlight>

Required Arguments

  • originX: float
  • originY: float
  • originZ: float
  • edgeX: float
  • edgeY: float
  • edgeZ: float
  • angle: float
  • p8: Boolean
  • p9: Boolean
  • p10: unknown (to be checked)

Return value

  • Boolean

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also