Frictional Games Forum (read-only)
Help me with scripts - 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: Help me with scripts (/thread-9864.html)

Pages: 1 2


RE: Help me with scripts - fuytko - 08-21-2011

(08-21-2011, 12:06 AM)JetlinerX Wrote:
Code:
void OnStart()
{
AddEntityCollideCallback("Player", "SoundArea_1", "OnCollide", true, 1);
}
void OnCollide(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}
That code will play "react_scare" when the "Player" walks across "SoundArea_1" so long as that area is listed as active in the editor.

Thank you man !!


RE: Help me with scripts - JetlinerX - 08-21-2011

No problem! Ask away Big Grin


RE: Help me with scripts - Phoroneus - 08-21-2011

(08-20-2011, 03:55 PM)darkside Wrote: "If it doesnt feel creepy to you, it wont feel much more creepy to the player. " - It will be never creepy for you (for me, at least) because you know what's going to happen. Plus the testing is repetetive so it gets boring easily.

My suggestion is to never give up. There will be lot's of errors and testing but in the end, it'll all go well (if you're doin it rite Smile).

Edit: typo ... imma grammar nazi.

It is entirely possible to make a map creepy, even if you know what is going to happen. In fact, if it isn't either creepy or tense, even to you, you can do better. Unnerving yourself is half the fun of creating custom stories.


RE: Help me with scripts - JetlinerX - 08-21-2011

And thats a wrap folks! Great way to put it.