GHI_PlaySound

Pilus edited this page Aug 11, 2015 · 3 revisions
Clone this wiki locally

Syntax:

GHI_PlaySound(path, delay)

Arguments:

GHI_Play Sound has 1 required argument and 1 optional argument.

path
''String''
The path to the sound being played. Remember to use double backslashes.
delay [optional]
''Number''
The delay between item use and sound playing in seconds.

Aliases:

None

Example:

local sound = "sound\\music\\zonemusic\\northrend\\northrendtransport\\nr_northrendtransportgeneralday"

GHI_PlaySound(sound,10)

This script plays the specified sound after a 10 second delay.