GHI_PlayAreaSound

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

Syntax:

GHI_PlayAreaSound(path, range, delay)

Arguments:

GHI_PlayAreaSound has 2 required arguments and 1 optional argument.

path
''String''
The path to the sound being played. Remember to use double backslashes.
range
''Number''
The range in which the sound can be hard measured in meters / yards.
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_PlayAreaSound(sound, 20, 10);

This script plays the specified sound in a 20 meter / yard radius after a 10 second delay.