+- 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] Error with scripts (/thread-29502.html)
Quote:That should do the trick, IF you intended to do it like i do now though.
IF not, we are here to help you out.
---
Here are some things you miswrote;
You were having some {}
Where they should NOT be there.
And:
{// Wrong
AddEntityCollideCallback("Player", "12_girl_scream", "GirlScream", true, 1); //put this in OnSTART
AddEntityCollideCallback("Player", "message1", "Message1", true, 1); //put this in OnSTART
AddEntityCollideCallback("Player", "message2", "Message2", true, 1); //put this in OnSTART
}//Wrong
PlaySoundAtArea("12_girl_scream", "12_girl_scream.snt", "GirlScream01", 0, false); <<<- Use PlaySoundAtEntity in stead.
}
IF you are making a function\script, try with void