Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //From my Amnesia Rebirth Tutorial Series
- //Episode 26 Custom Sounds!
- //https://www.youtube.com/playlist?list=PL4KkjlmOwLwwMVqedCNpi6caUxhgyf8Qr
- //-----------------------------------------------------------
- ///////////////////////////////////////
- // SNT Sound File Format
- // Create sound folder and add <Directory Path="/sounds" AddSubDirs="true"/> to your resources config file
- // Create a file and paste the below, save as a .snt file
- ///////////////////////////////////////
- <SOUNDENTITY>
- <SOUNDS>
- <Main>
- <Sound File="sound_name.ogg" />
- </Main>
- </SOUNDS>
- <PROPERTIES Volume="100" MinDistance="1" MaxDistance="50" Random="0" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="False" Use3D="false" Blockable="False" BlockVolumeMul="0.7" Priority="5" />
- </SOUNDENTITY>
- ///////////////////////////////////////
- // Sound Function
- ///////////////////////////////////////
- //Play a sound at a specified entity (you can use "player" if desired)
- Sound_CreateAtEntity("sound_name", "sound_name.snt", "player", 0.0f, false, 1.0f, 1.0, 5.0);
- //SoundName (String)- name of the sound for referencing in your script.
- //SoundFileName (String)- path to .snt sound file (should include .snt in the name, Ex: your_sound.snt).
- //EntityName (String)- the name of the entity that this sound should be played at.
- //FadeInTime (float)- the amount of time should take for the sound to fully fade in.
- //SaveSound (bool)- should the sound be saved for later use.
- //Volume (float)- the volume of the specified audio (0.0 - 1.0 only).
- //MinDistance (float)- minimum distance at which the sound could be heard.
- //MaxDistance (float)- maximum distance at which the sound could be heard.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement