IsRadarAreaFlashing: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | {{Server function}} | ||
__NOTOC__ | |||
This function allows detection of whether a radar area is flashing or not. | This function allows detection of whether a radar area is flashing or not. | ||
Line 16: | Line 17: | ||
This example checks whether the radar area in the variable ''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 ) | if ( isRadarAreaFlashing ( glenpark ) ) 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 | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 19:08, 16 August 2007
This function allows detection of whether a radar area is flashing or not.
Syntax
bool isRadarAreaFlashing ( radararea theRadararea )
Required Arguments
- theRadararea: 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 or if it doesn't exist.
Example
This example checks whether the radar area in the variable glenpark is flashing, and announces it if it is.
if ( isRadarAreaFlashing ( glenpark ) ) 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