OnClientSoundBeat: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Undo revision 33364 by X86dev (talk))
No edit summary
Line 7: Line 7:
==Parameters==  
==Parameters==  
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
int theTime
double theTime
</syntaxhighlight>  
</syntaxhighlight>  


*'''theTime''': the time of the beat
*'''theTime''': the position in the song of the beat


==Source==
==Source==

Revision as of 06:14, 31 August 2013

ADDED/UPDATED IN VERSION 1.3.1 :

This event is triggered when a sound beats.

[[{{{image}}}|link=|]] Note: This event does not work correctly pre 1.3.1-9-04627

Parameters

double theTime
  • theTime: the position in the song of the beat

Source

The source of this event is the sound's element.

Example

-- Not done yet

Requirements

Minimum server version n/a
Minimum client version 1.3.0-9.04162

Note: Using this feature requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version client="1.3.0-9.04162" />

See Also

Client sound events


Client event functions