OnMapLoad: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser28 (talk | contribs) (Needs Checking: Event does not exist) |
mNo edit summary |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Historical|This event no longer exists since 2011}} | |||
{{Delete|This event no longer exists.}} | |||
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"> | ||
Line 21: | Line 24: | ||
==See Also== | ==See Also== | ||
{{ | {{Map_functions}} | ||
[[Category:Archived]] |
Latest revision as of 16:21, 11 September 2024
Historical: This page is retained for historical reference. | |
This event no longer exists since 2011 |
This page is marked for deletion. | |
Reason: This event no longer exists. Actions: Delete (Administrators) - Discuss - What links here - Category
|
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