- Joined
- Aug 13, 2013
- Messages
- 1,696
hi guys, tried searching but couldn't find any...
the query is to play imported custom sounds (basically, a wav file) by just manipulating the string field of an ability:
using the natives:
but seems like they only play default sounds listed here:
i know there are other workarounds to deal with playing custom sounds but isn't it possible to like kinda put our imported sounds on the list of Sound - Effect Sound string values instead in order for our own sounds to be played or i'm just getting it wrong? tia
the query is to play imported custom sounds (basically, a wav file) by just manipulating the string field of an ability:
using the natives:
Lua:
BlzSetAbilityStringField(BlzGetUnitAbility(unit,ability),ABILITY_SF_EFFECT_SOUND,"") -- working
BlzSetAbilityStringField(BlzGetUnitAbility(unit,ability),ABILITY_SF_EFFECT_SOUND,"A01Garithos01") -- working
BlzSetAbilityStringField(BlzGetUnitAbility(unit,ability),ABILITY_SF_EFFECT_SOUND,"war3mapImported\\Pyroblast Cast Sound.wav") -- not working
i know there are other workarounds to deal with playing custom sounds but isn't it possible to like kinda put our imported sounds on the list of Sound - Effect Sound string values instead in order for our own sounds to be played or i'm just getting it wrong? tia