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.
[01:00 pm]
Moose -- Doodan
Doodan shouted: How will you survive at SEN if you don't play SEN Survivor??? http://www.staredit.net/topic/17954/
joke's on you, I'm already dead inside
[08:41 am]
KrayZee -- Doodan
Doodan shouted: How will you survive at SEN if you don't play SEN Survivor??? http://www.staredit.net/topic/17954/
You don't!
[03:35 am]
Doodan -- How will you survive at SEN if you don't play SEN Survivor??? http://www.staredit.net/topic/17954/
[12:02 am]
lil-Inferno -- ya
[10:07 pm]
jjf28 -- gambling's more an addiction than recreation
[08:30 pm]
Roy -- I'd argue recreation isn't strictly a waste of time.
[08:20 pm]
RdeRenato -- xd
[2020-1-17. : 7:42 pm]
KrayZee -- Roy
Roy shouted: KrayZee What defines whether or not time is wasted? Is it a metric of enjoyment? Contribution to society? Financial compensation? Depending on your answer, everything or nothing could be a waste of time.
Like coming to SEN using the shoutbox and wasting precious minerals on magic boxes?
[2020-1-17. : 6:09 pm]
Roy -- KrayZee
KrayZee shouted: Watching live streams of gamers playing through trial and error feels such a waste of time.
What defines whether or not time is wasted? Is it a metric of enjoyment? Contribution to society? Financial compensation? Depending on your answer, everything or nothing could be a waste of time.
[2020-1-17. : 11:04 am]
TF- -- u
Please log in to shout.


Members Online: Roy, Wing Zero, nowicjusz126328