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

Playing a sound

Status
Not open for further replies.
Level 14
Joined
Aug 30, 2004
Messages
909
I couldn't find a tutorial on playing sounds in game, so I thought it might be as easy as it looked:

  • Sound - Play Doodad_PortZionCrusherDoodadWorkImpact for (All players) on Car with Z offset 0.0 (at 100.0% volume, skip the first 0.0 seconds)
But that produced no sound. Is there a sound editor of some kind, like the WC3 editor?
 
Level 14
Joined
Aug 30, 2004
Messages
909
The "Sounds" catalog in the data editor.

I'm afraid I understated my own ignorance. I have now found the sound I want:

Doodad_PortZionCrusherDoodadWorkImpact

... but when I put in this line:

  • Sound - Play Doodad_PortZionCrusherDoodadWorkImpact for (All players) on Car with Z offset 0.0 (at 100.0% volume, skip the first 0.0 seconds)
on my Car unit and I hear nothing. I've also tried playing it at the point location of the Car, and that didn't work either.

In WC3 you had to select the sound files you wanted to use in the editor. I can't seem to find any way of doing that in SC2. Do you have to mark sounds to be used?
 
Level 14
Joined
Aug 30, 2004
Messages
909
Why not attach a sound actor to the unit like most passive sounds? You could use actor messages to toggle sounds on and off (if you set the events properly).

In short, I'm not sure how to do that. I find the data editor insanely hard to use, and have been triggering most of my effects so far. Even so, there has to be a way to just play a sound at a point, right? The action is right there but doesn't seem to work.

*****************EDIT******************

I discovered the problem. I had moved the camera up in the air so much that no sounds can be heard. I can fix it by playing the sound 60 - points in the air for everything, but that's kind of annoying. I then looked elsewhere on the forums and found the answer. It's here for others with this problem:

http://www.hiveworkshop.com/forums/...-not-playing-when-camera-too-far-away-211586/
 
Last edited:
Status
Not open for further replies.
Top