OnMapLoad: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser28 (talk | contribs) (Needs Checking: Event does not exist) |
OpenIDUser28 (talk | contribs) (A small edit to mine before) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Needs Checking|This event does not exist anymore. Remove? --[[User:OpenIDUser28|Sniper]] 00:13, 4 September 2011 (CEST)}} | |||
This event is triggered when a map is loaded. | This event is triggered when a map is loaded. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Revision as of 22:14, 3 September 2011
This article needs checking. | |
Reason(s): This event does not exist anymore. Remove? --Sniper 00:13, 4 September 2011 (CEST) |
This event is triggered when a map is loaded.
Syntax
void onMapLoad ( string name )
Variables
- The source of this event refers to the loaded map.
- name: A string representing the name of the map
Example
This example displays a message in the textbox when you load a map containing this lua
addEventHandler ( "onMapLoad", getRootElement(), "mapLoadChatBoxOutput" ) function mapLoadChatBoxOutput ( name ) outputChatBox ( "Map "..name.." Loaded", root, 255, 255, 255 ) end
See Also
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled