IsRadarAreaFlashing: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:


===Returns===
===Returns===
Returns ''true'' if the operation was successful, ''false'' otherwise.
Returns ''true'' if the radar area is flashing, ''false'' if it is now.


==Example==  
==Example==  

Revision as of 18:41, 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 now.

Example

This example checks whether the radar area 'glenpark' is flashing, and announces it if it is.

if isRadarAreaFlashing ( glenpark ) == true --if glen park is flashing it
    outputChatBox ( "Glen Park is under attack!!!" ) -- anounce it
end

See Also