![]() |
Monster Appear Script Problem - 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: Monster Appear Script Problem (/thread-17241.html) |
Monster Appear Script Problem - theknig - 07-24-2012 Hello I Need Your Help Guys I Get This When I Start The Custom Story main (2,4): ERR: No matching signatures to 'AddEntityCollideCallBack(string@&, string@&, string@&,const bool,const uint) main (3,4): ERR: No matching signatures to 'AddEntityCollideCallBack(string@&, string@&, string@&,const bool,const uint) this is my script void OnStart() { AddEntityCollideCallBack("Player","start","monster",true,1); AddEntityCollideCallBack("brute","stop","monsterend",true,1); } void monster(string &in asParent, string &in asChild, int alState) { SetEntityActive("Brute",true); AddEnemyPatrolNode("brute","node",0,""); } void monsterend(string &in asParent, string &in asChild, int alState){ SetEntityActive("Brute",false); } Please Help ![]() RE: Monster Appear Script Problem - Steve - 07-24-2012 try adding spaces (you always have to add spaces after the , ) void OnStart() { AddEntityCollideCallBack("Player", "start", "monster", true, 1); AddEntityCollideCallBack("brute", "stop", "monsterend", true, 1); } void monster(string &in asParent, string &in asChild, int alState) { SetEntityActive("Brute", true); AddEnemyPatrolNode("brute", "node", 0, ""); } void monsterend(string &in asParent, string &in asChild, int alState) { SetEntityActive("Brute", false); } like this ![]() RE: Monster Appear Script Problem - drunkmonk - 07-24-2012 You have a capital on the "b" in callback, switch it a lower case and see if that helps RE: Monster Appear Script Problem - theknig - 07-24-2012 (07-24-2012, 08:57 PM)drunkmonk Wrote: You have a capital on the "b" in callback, switch it a lower case and see if that helpsIt Worked Thanks ![]() RE: Monster Appear Script Problem - drunkmonk - 07-24-2012 no problem! I'm glad I could help ![]() |