Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Adding a Sound Triggered by an Area
Samuelblitz Offline
Junior Member

Posts: 16
Threads: 4
Joined: Feb 2011
Reputation: 0
#7
RE: Adding a Sound Triggered by an Area

(03-02-2011, 08:17 AM)Russ Money Wrote:
Quote:enabled.snt is one of the grunt's sound files and i tried the fade at 0.0f but still no sound in-game,

just out of curiosity, is this a common problem? or is it just my game specifically?

Most likely just a coding or some small detail we're overlooking. Just for testing sake, try this instead.


PlaySoundAtEntity("", "enabled.snt", "Player", 0.0f, false);

It'll play directly on the player, letting them hear it regardless. If it doesn't play, it's .snt file. Which alternatively, you can try a different .snt and test that.

Ahh, that worked perfectly! Thank you very much.

However are there any disadvantages to playing the sound directly from "Player"? Because i was planning to have quite a few triggered sounds and i might end up having to use this method for all of them.
03-02-2011, 09:37 PM
Find


Messages In This Thread
RE: Adding a Sound Triggered by an Area - by Samuelblitz - 03-02-2011, 09:37 PM
RE: Adding a Sound Triggered by an Area - by Nye - 03-02-2011, 09:45 PM



Users browsing this thread: 1 Guest(s)