Why doesn't this simple script work? - 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: Why doesn't this simple script work? (/thread-10995.html) |
Why doesn't this simple script work? - Patacorow - 10-26-2011 void OnStart() { AddEntityCollideCallback("Player", "ScriptArea_1", "GruntEvent", true, 1); } void GruntEvent(string &in asParent, string &in asChild, int alState) { SetEntityActive("enemy_grunt",true); } This doesn't work. Help? EDIT: Nevermind! I just had to recompile the script file. You can delete this. :S |