Entity::isInAngledArea: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 20: Line 20:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Entity_function_c}}
{{Entity_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 17:58, 1 May 2024

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

entity.isInAngledArea(originX, originY, originZ, edgeX, edgeY, edgeZ, angle, p8, p9, p10);

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

// todo

See also