• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
Level 21
Joined
Aug 13, 2013
Messages
1,709
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.
Back
Top