getRadarAreaSize
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 is used for getting the X and Y size of an existing radar area.
Syntax
getRadarAreaSize ( )Code Examples
server
The following example looks for radar areas whose size is smaller than 100 by 100:
local radarareas = getElementsByType ( "radararea" ) -- get a table of radararea elementsfor k, theArea in ipairs(radarareas) do -- use a generic for loop to step through each of the elements local sizeX, sizeY = getRadarAreaSize ( theArea ) -- get the size of the radar area if ( sizeX < 100 and sizeY < 100 ) then -- check if it's smaller than 100 by 100 outputChatBox ( "A small radar area was found!" ) endend