• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
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
 
Status
Not open for further replies.
Top