Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: What is the integer argument to the playWAV trigger?
What is the integer argument to the playWAV trigger?
Mar 1 2019, 9:47 pm
By: sethmachine  

Mar 1 2019, 9:47 pm sethmachine Post #1



What is the integer in this TrigEdit trigger for playing a wav sound?

Play WAV("sound\\Protoss\\Witness\\PWiPss00.WAV", 3877);

Is it the duration of that audio file in miliseconds?

What happens if I change the number to be greater or less than the duration, will it stop short?



None.

Mar 1 2019, 10:20 pm MinuteMan Post #2



I don't know why you have a 2nd argument for that action in the 1st place tbh. PlayWAV only takes 1 argument, the filename.

Code
function PlayWAV(WAVName)
   WAVName = ParseString(WAVName)
   return Action(0, 0, WAVName, 0, 0, 0, 0, 8, 0, 4)
end





Mar 1 2019, 10:45 pm jjf28 Post #3

Cartography Artisan

It's a duration, I don't know the exact mechanics but I know the purpose is to have WAVs play more accurately when their length cannot be auto-determined; you're best off setting it to the duration, in game seconds, of the WAV.



Rs_yes-im4real - Clan Aura - jjf28.net84.net

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:17 pm]
Pr0nogo -- u
[02:35 pm]
lil-Inferno -- u
[02:02 pm]
Corbo -- No
[01:28 pm]
razorback9423 -- Um, is this shoutbox active?
[2019-9-14. : 11:18 am]
razorback9423 -- C.I.S. Conversion Mod will have a campaign, and the first part is coming this September.
[2019-9-13. : 12:03 am]
Wing Zero -- Memes
[2019-9-12. : 8:36 pm]
KrayZee -- I'm curious what internet archaeologists will find in Maplantis
[2019-9-12. : 5:17 pm]
MTiger156 -- Moral of the story - don't end up like Friendster
[2019-9-12. : 3:53 am]
Pr0nogo -- Voyager7456
Voyager7456 shouted: kill you opponent
Zoan
Zoan shouted: this map was boring as far as I remember lol
Please log in to shout.


Members Online: Roy, ozellochoa, KrayZee