OnClientSoundStarted: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser34 (talk | contribs) (Created page with "{{Client_Function}} test example until properly documented <syntaxhighlight lang="lua"> function onSoundStarted ( reason ) if ( source == currentTrack ) then if ( reason == "play" ) then ...") |
(No difference)
|
Revision as of 22:05, 22 February 2012
test example until properly documented
function onSoundStarted ( reason ) if ( source == currentTrack ) then if ( reason == "play" ) then outputChatBox ( "sound started" ) elseif ( reason == "resumed" ) then outputChatBox ( "sound resumed" ) end end end addEventHandler ( "onClientSoundStarted", getRootElement(), onSoundStarted )
See Also
Client sound events
- onClientSoundBeat
- onClientSoundChangedMeta
- onClientSoundFinishedDownload
- onClientSoundStarted
- onClientSoundStopped
- onClientSoundStream
Client event functions
Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled