isInsideRadarArea
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function checks if a 2D position is inside a radar area or not.
Syntax
isInsideRadarArea ( )Code Examples
server
This function checks if an element is within a radar area.
function isElementInsideRadarArea ( theElement, theArea ) -- get the x, y coordinates from getElementPosition (z gets silently discarded) local posX, posY = getElementPosition( theElement ) -- call isInsideRadarArea with those coordinates and return its result return isInsideRadarArea ( theArea, posX, posY )end