AddEntityCollideCallback bug, need help - 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: AddEntityCollideCallback bug, need help (/thread-11357.html) |
AddEntityCollideCallback bug, need help - omiwrench8k - 11-15-2011 Alright, so when I try running this code: void OnEnter ( ) { AddEntityCollideCallback ("Player", "PlayerCollide", "MonsterFunction", true, 1); AddEntityCollideCallback ("monster_grunt_2", "MonsterCollide_1" "MonsterTwoDissapear", true, 1); } void MonsterFunction (string &in asParent, string &in asChild, int alState){ SetEntityActive ("severant_grunt_1", true); ShowEnemyPlayerPosition ("monster_grunt"); } void OnLeave ( ){ } It gives me the error message: main(4,2) : ERR : No matching signatures to 'AddEntityCollideCallback(string@&, string@&, const bool, const uint)' Anyone know what the problem is? Thanks! RE: AddEntityCollideCallback bug, need help - Darion97 - 11-15-2011 void onStart() { AddEntityCollideCallback ("Player", "PlayerCollide", "MonsterFunction", true, 1); AddEntityCollideCallback ("monster_grunt_2", "MonsterCollide_1", "MonsterTwoDissapear", true, 1); } void MonsterFunction (string &in asParent, string &in asChild, int alState) { SetEntityActive ("severant_grunt_1", true); ShowEnemyPlayerPosition ("monster_grunt"); } void OnLeave ( ) { } RE: AddEntityCollideCallback bug, need help - omiwrench8k - 11-16-2011 Thanks! |