Frictional Games Forum (read-only)
[SCRIPT] FATAL ERROR: Could not load script file - 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: [SCRIPT] FATAL ERROR: Could not load script file (/thread-31154.html)

Pages: 1 2 3


RE: FATAL ERROR: Could not load script file - MarkoJ - 10-08-2015

I wish I understood you correctly, but I've never scripted before like ever. So it's kinda hard for me to understand what all of this commands mean..


RE: FATAL ERROR: Could not load script file - FlawlessHappiness - 10-08-2015

To answer your question. If you want more than one sound you could just put another one inside it.
PHP Code:
void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Function", true, 1);
}

void Function(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "NAMEOFSOUND", "Player", 0.0f, false);
PlaySoundAtEntity("", "NAMEOFSOUND2", "Player", 0.0f, false);
PlaySoundAtEntity("", "NAMEOFSOUND3", "Player", 0.0f, false);
} 

Easy peasy. But yes, you have to create a function for every place where you want something to happen (At least when you're new to scripting).


RE: FATAL ERROR: Could not load script file - MarkoJ - 10-08-2015

Alright, thanks for your help Smile