IsRadarAreaFlashing: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 17: Line 17:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
if isRadarAreaFlashing ( glenpark ) == true --if glen park is flashing it
if isRadarAreaFlashing ( glenpark ) == true --if glen park is flashing it
     outputChatBox ( "Glen Park is under attack!!!" ) -- anounce it
     outputChatBox ( "Glen Park is under attack!!!" ) -- announce it
end
end
</syntaxhighlight>
</syntaxhighlight>

Revision as of 18:42, 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!!!" ) -- announce it
end

See Also