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
PlayMusic seems to come from a direction
tonitoni1998 Offline
Member

Posts: 163
Threads: 54
Joined: Oct 2012
Reputation: 1
#1
PlayMusic seems to come from a direction

i used the scare_wall_stomp1.ogg and looped it, to create a bass bump similar to the slender ambience. but it seems to be 3d, and comes from the middle of the map. how can i make it come from the player? do i have to use PlaySoundAtEntity? if so, how can i make that loop?

PlayMusic("scare_wall_stomp1.ogg", true, 2, 4, 1, false);

When you are looking for someone, to do the scripting for your Custom Story, ask me!
02-16-2013, 03:08 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: PlayMusic seems to come from a direction

This is not meant to be a music file.
I would rather create one myself, or what i did in Digressiophobia:

Have a timer call itself every, i don't know, 5 second maybe?

So every 5 time you'll hear the sound, with playsoundatentity.

Trying is the first step to success.
02-16-2013, 03:22 PM
Find
i3670 Offline
Posting Freak

Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation: 36
#3
RE: PlayMusic seems to come from a direction

You could use (below), I think and just loop that.

PlayGuiSound("sound.snt", 0.0f);

0.0f is volume.



AddTimer("soundtimer", 5.0f, "TimerSound");

void TimerSound(string &in asTimer)
{
PlayGuiSound("sound.snt", 0.0f);
AddTimer("soundtimer", 5.0f, "TimerSound");
}

"What you think is irrelevant" - A character of our time

A Christmas Hunt
02-16-2013, 04:08 PM
Find




Users browsing this thread: 1 Guest(s)