Frictional Games Forum (read-only)
How to trigger sounds, entities etc. - 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: How to trigger sounds, entities etc. (/thread-19114.html)



How to trigger sounds, entities etc. - tonitoni1998 - 11-06-2012

hey guys,

i want to trigger a sound, when the player enters an area. i already discovered the "Areas" button but dont know how to use it. can you help me?

thanks alot


RE: How to trigger sounds, entities etc. - tonitoni1998 - 11-06-2012

well...


RE: How to trigger sounds, entities etc. - ZodiaC - 11-06-2012

Void OnStart
{
AddEntityCollideCallback(string& asParentName, string& asChildName, string& asFunction, bool abDeleteOnCollide, int alStates);
}

void MyFunc(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound);
}

Just make the appropriate changes.