• 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.

[JASS] Small question about function

Status
Not open for further replies.
Level 20
Joined
Jul 14, 2011
Messages
3,213
Warning: I'm a JASS noob.
JASS:
function AddSoundToDialog takes string soundpath returns nothing

I'm having problems using 'soundpath', I was wondering how to take 'sound variable' instead of 'string', so I can use

call 'AddSoundToDialog(gg_snd_MYSound)' instead of call 'AddSoundToDialog("Sounds\\Units\\MySound.mp3")'
 
Status
Not open for further replies.
Top