Difference between revisions of "OnClientResourceStart"
m (See Also for client resource events)
|Line 14:||Line 14:|
Revision as of 18:52, 5 October 2009
This event is triggered when a resource is started. Please note that this is not triggered the same side as the serverside variant onResourceStart. The event is triggered when any clientside resources are started. This means it is triggered when a clientside script is initiated after a download, which includes downloading after join.
- startedResource: the resource that was started.
This example outputs name of resource that was started.
addEventHandler( "onClientResourceStart", getRootElement( ), function ( startedRes ) outputChatBox( "Resource started: " .. getResourceName( startedRes ) ); end );
Client resource events
Client event functions