• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[General] play imported custom sounds using Sound - Effect Sound field in object editor

Level 20
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:
1708492595652.png

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
but seems like they only play default sounds listed here:
1708492915258.png

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
 
Top