I have a problem with my script - 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: I have a problem with my script (/thread-13117.html) |
I have a problem with my script - Harrjannk - 02-05-2012 Hey, First thing: My English is bad. I hope you will understand me. I'm new here and I'm currently working on my first custom story. I tried, to make an area, where a sound would play, when the player walks into another area, but it doesn't work. When I walk into the area, nothing happens. I tried to solve it, but I can't see what's the problem. Heres my script: Quote: void OnStart() RE: I have a problem with my script - Elven - 02-05-2012 In wiki: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions When I search for AddEntityCollideCallback, then syntax says: void MyFunc(string &in asParent, string &in asChild, int alState), not (string &in Entity) RE: I have a problem with my script - Harrjannk - 02-05-2012 What a stupid mistake. Thanks, it helps. RE: I have a problem with my script - Elven - 02-05-2012 No Problem ! |