PlayMusic seems to come from a direction - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: PlayMusic seems to come from a direction (/thread-20354.html) |
PlayMusic seems to come from a direction - tonitoni1998 - 02-16-2013 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); RE: PlayMusic seems to come from a direction - FlawlessHappiness - 02-16-2013 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. RE: PlayMusic seems to come from a direction - i3670 - 02-16-2013 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"); } |