tonitoni1998
Member
Posts: 163
Threads: 54
Joined: Oct 2012
Reputation:
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 |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
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 |
|
i3670
Posting Freak
Posts: 1,308
Threads: 74
Joined: Oct 2011
Reputation:
36
|
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");
}
|
|
02-16-2013, 04:08 PM |
|