OnResourceStart
Jump to navigation
Jump to search
This event is triggered when a resource is loaded.
Syntax
void onResourceStart ( string name )
Variables
- The source of this event refers to the loaded resource.
- name: A string representing the name of the resource
Example
This example displays a message in the textbox when you load a map containing this lua
addEventHandler ( "onResourceStart", 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