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.
[05:19 pm]
NudeRaider -- when in doubt, Amazon
[05:11 pm]
Vrael -- hey does anyone know where I might be able to get a de-humidifer somewhere in the united kingdom?
[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:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
Please log in to shout.


Members Online: jun3hong, Roy