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
Need help with scripting music to areas
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#14
RE: Need help with scripting music to areas

(04-04-2014, 07:56 AM)Mudbill Wrote: The reason I don't think background music would work well as an area effect is simply because it would fade away as you walked further away from the center. Music should be played as an ambient sound, that is if you don't want to do something really special with it. You CAN use area effects and probably make it work really well, but that is not the casual way of doing so, therefore I don't see why someone, especially a beginner, should make use of such.
Cause it's easier for him to place a simple sound object than write a function.
Also, inside the .snt you can set the sound to Use3D=False. It stops the fade.
That's how Amnesia uses the ambient sounds.

(04-04-2014, 12:03 PM)Wapez Wrote: Sound objects in the editor also has its range limit in the shape of a sphere, which rarely is the case for the shape of a room.
Then set its range to cover the whole room?
If it leaks to another location like a hallway or another room and it's not what the guy wants then yeah, he should use another method.
But that doesn't mean sound objects don't work or can't play music.

(04-04-2014, 01:16 PM)DnALANGE Wrote:
PHP Code: (Select All)
void SoundatGarden(string &in asParentstring &in asChildint alState)
{
if(
alState == 1)
{
PlaySoundAtEntity("STOPGARDENSOUNDS""YOUR.snt""Player"0false);

Great. I'd use PlayMusic but your way seems to do the same.

04-04-2014, 05:43 PM
Find


Messages In This Thread
RE: Need help with scripting music to areas - by Daemian - 04-04-2014, 05:43 PM



Users browsing this thread: 1 Guest(s)