IsRadarAreaFlashing: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 14: | Line 14: | ||
==Example== | ==Example== | ||
This example checks whether the radar area 'glenpark' is flashing, and announces it if it is. | This example checks whether the radar area in the variable ''glenpark'' is flashing, and announces it if it is. | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
if isRadarAreaFlashing ( glenpark ) == true --if | if ( isRadarAreaFlashing ( glenpark ) == true ) then -- if the radar area in the variable glenpark is flashing | ||
outputChatBox ( "Glen Park is under attack!!!" ) -- announce it | outputChatBox ( "Glen Park is under attack!!!" ) -- announce it | ||
end | end |
Revision as of 21:34, 13 August 2006
This function allows detection of whether a radar area is flashing or not.
Syntax
bool isRadarAreaFlashing ( radararea radararea )
Required Arguments
- radararea: The radar area you wish to check the state of flashing
Returns
Returns true if the radar area is flashing, false if it is not.
Example
This example checks whether the radar area in the variable glenpark is flashing, and announces it if it is.
if ( isRadarAreaFlashing ( glenpark ) == true ) then -- if the radar area in the variable glenpark is flashing outputChatBox ( "Glen Park is under attack!!!" ) -- announce it end
See Also
- createRadarArea
- getRadarAreaColor
- getRadarAreaSize
- isInsideRadarArea
- isRadarAreaFlashing
- setRadarAreaColor
- setRadarAreaFlashing
- setRadarAreaSize