root/GHI/ActionExecutors/GHI_AreaSound.lua
| 363 | 611 | ||
|---|---|---|---|
23 | local MAX_RANGE = 50; | 23 | local MAX_RANGE = 50; |
24 | local log = GHI_Log(); | 24 | local log = GHI_Log(); |
25 | local delayedSounds = {}; | 25 | local delayedSounds = {}; |
26 | local misc = GHI_MiscAPI().GetAPI(); | ||
26 | 27 | ||
27 | class.PlaySound = function(soundPath,range,delay) | 28 | class.PlaySound = function(soundPath,range,delay) |
28 | if type(delay) == "number" and delay > 0 then | 29 | if type(delay) == "number" and delay > 0 then |
... | ... | ||
75 | 76 | ||
76 | PlaySoundFile(soundPath); | 77 | PlaySoundFile(soundPath); |
77 | if GHI_MiscData["show_area_sound_sender"] then | 78 | if GHI_MiscData["show_area_sound_sender"] then |
78 | GHI_Message("Area sound by "..(sender or "nil")); | 79 | misc.GHI_Message("Area sound by "..(sender or "nil")); |
79 | end | 80 | end |
80 | end | 81 | end |
81 | end | 82 | end |
Download diff