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.



TheNitesWhoSay - Clan Aura - github

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.
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:35 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:34 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[01:34 pm]
ninokaw193 -- RioGrand is a reputed name in manufacturing high- quality Criket Bats https://www.riogrand.in
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
Please log in to shout.


Members Online: jun3hong