IsRadarAreaFlashing: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 17: | 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 ) ) then -- if the radar area in the variable glenpark is flashing | function checkArea(sourcePlayer) | ||
if ( isRadarAreaFlashing ( glenpark ) ) then -- if the radar area in the variable glenpark is flashing | |||
outputChatBox ( "Glen Park is under attack!!!" ) -- announce it | |||
end | |||
end | end | ||
addCommandHandler("checkArea", checkArea) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Radar area functions}} | {{Radar area functions}} |
Revision as of 05:33, 30 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.
function checkArea(sourcePlayer) if ( isRadarAreaFlashing ( glenpark ) ) then -- if the radar area in the variable glenpark is flashing outputChatBox ( "Glen Park is under attack!!!" ) -- announce it end end addCommandHandler("checkArea", checkArea)
See Also
- createRadarArea
- getRadarAreaColor
- getRadarAreaSize
- isInsideRadarArea
- isRadarAreaFlashing
- setRadarAreaColor
- setRadarAreaFlashing
- setRadarAreaSize