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
Why my Soundfile trigger wont work?
Tripication Offline
Member

Posts: 172
Threads: 19
Joined: Dec 2011
Reputation: 6
#8
RE: Why my Soundfile trigger wont work?

Do this



AddEntityCollideCallback("Player", "VoiceTrigger", "Prisoner", true, 1);




void Prisoner(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "prisoner_edited.snt", "agrippa_1", 0, false);
}




Then make a folder in your custom story called SOUNDS.
Then in the folder, Copy an ALREADY existing .snt file from the main SOUNDS folder, (and assuming you already have an edited .ogg file named prisoner_edited.ogg) copy that too, into the sounds folder in your custom story.
Then rename the .snt file to prisoner_edited.snt
So in your Sounds folder located in Amnesia:The Dark Descent>custom_stories>[Your Map Name] You should have 2 files, one called prisoner_edited.snt and prisoner_edited.ogg
open the prisoner_edited.snt with Notepad(preferably Notepd++)and replace whatever is in there with this
<SOUNDENTITY>
<SOUNDS>
<Main>
<Sound File="prisoner_edited" />
</Main>
</SOUNDS>
<PROPERTIES Volume="0.7" MinDistance="10" MaxDistance="50" Random="1" Interval="0" FadeEnd="False" FadeStart="False" Stream="False" Loop="true" Use3D="True" Blockable="True" BlockVolumeMul="0.8" Priority="0" />
</SOUNDENTITY>






Edit the properties to you desire.
You do NOT need to locate the file in the script or level editor, the game will find the file itself.


[Image: speedart__2___yoshimitsu_by_kamofudge-d4yo6kk.png]
(This post was last modified: 01-10-2012, 07:01 AM by Tripication.)
01-10-2012, 07:00 AM
Find


Messages In This Thread
RE: Why my Soundfile trigger wont work? - by Tripication - 01-10-2012, 07:00 AM



Users browsing this thread: 1 Guest(s)