isRadarAreaFlashing
Client-side
Server-side
Shared
Pair: setRadarAreaFlashing
Manual Review Required
Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.
This function allows detection of whether a radar area is flashing or not.
OOP Syntax Help! I don't understand this!
- Method:radararea:isFlashing(...)
- Variable: .flashing
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.
- bool: value
Code Examples
shared
This example checks whether the radar area in the variableglenparkis 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 endendaddCommandHandler("checkArea", checkArea)