OnMapLoad: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser28 (talk | contribs) (A small edit to mine before) |
m (Removed needs checking, function is deprecated) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Deprecated}} | ||
This event is triggered when a map is loaded. | This event is triggered when a map is loaded. | ||
Revision as of 11:16, 16 November 2011
This event is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does. | |
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