OnMapLoad: Difference between revisions
Jump to navigation
Jump to search
m (Removed needs checking, function is deprecated) |
m (Visual improvement) |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Warning|'''This event no longer exists'''. Map loads are synchronous (they finish before the script continues).|true}} | ||
This event is triggered when a map is loaded. | This event is triggered when a map is loaded. | ||
Line 22: | Line 23: | ||
==See Also== | ==See Also== | ||
{{ | {{Map_functions}} |
Revision as of 12:07, 26 June 2014
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