Frictional Games Forum (read-only)

Full Version: sound wont play -.-
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
yo,

my sound wont play and i dont know why

Quote:void delaytimer1(string &in asTimer)
{
SetSwingDoorClosed("mansion_1", true, true);
.....
PlaySoundAtEntity("", "sounds\breath.ogg", "Player", 0, true);
.....
StartPlayerLookAt("mansion_1", 5,5, "");
AddTimer("delay_timer", 4, "delaytimer2");
}
the dots are just for show u which script wont work.

i tryed it in different ways
sounds\breath.ogg
sounds/breath.ogg
sounds\breath
sounds/breath
breath
breath.ogg

The sound is in my costum story folder ( custom_stories/paranoid/sounds )
the sounds rent original i downloaded them and converted to .ogg.
can someone help me :S ?
try

custom_stories\paranoid\sounds\breath.ogg
(01-13-2011, 08:12 PM)xiphirx Wrote: [ -> ]try

custom_stories\paranoid\sounds\breath.ogg

nope , still not working ._.
Wait, you have to show an entity if you want to play the sound on entity, like this:
Code:
PlaySoundAtEntity("Breath", "breath.ogg","Player", 0.5f, true);

Or, use this:

Code:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);
(01-13-2011, 08:41 PM)Tanshaydar Wrote: [ -> ]Wait, you have to show an entity if you want to play the sound on entity, like this:
Code:
PlaySoundAtEntity("Breath", "breath.ogg","Player", 0.5f, true);

Or, use this:

Code:
PlayMusic(string& asMusicFile, bool abLoop, float afVolume, float afFadeTime, int alPrio, bool abResume);

na, i tryed it onstar() aswell but just dont work Sad
If you want to use it as an ambiance sound, just use it this way:
Code:
PlayMusic("white_intro", false, 0.6f, 1.0f, 0, false);

white_intro is the name of the music that I use. Don't add .ogg to the end. 0.6 is volume, you can change it.
Place your music into custom_stories\your mod\music
(01-13-2011, 08:51 PM)Tanshaydar Wrote: [ -> ]If you want to use it as an ambiance sound, just use it this way:
Code:
PlayMusic("white_intro", false, 0.6f, 1.0f, 0, false);

white_intro is the name of the music that I use. Don't add .ogg to the end. 0.6 is volume, you can change it.
Place your music into custom_stories\your mod\music

awsome , this works fine for me. Thx mister !!
There's no need to define the path to your sound. It will automatically check in the 'sounds' folder in your custom story folder.

EDIT: What Tanshaydar just said.. :/
(01-13-2011, 09:47 PM)Tottel Wrote: [ -> ]There's no need to define the path to your sound. It will automatically check in the 'sounds' folder in your custom story folder.

EDIT: What Tanshaydar just said.. :/

y i know, but it wont play this fucking sound, the music script works fine, but i need 2 sounds at the same time so i cant use music script there , at least i need one "playsoundatentity" script Sad
It depends on what you want to do. Two music at the same time wouldn't fit for ambiance music, if they both are ambiance sounds. But you can place the music on another entity.

For the entity sounds, you should place your sounds into custom_stories\your mod\sound folder. And you should name it in the code piece.
Pages: 1 2