Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddEntityCollideCallback bug, need help
omiwrench8k Offline
Junior Member

Posts: 6
Threads: 2
Joined: Nov 2011
Reputation: 0
#1
AddEntityCollideCallback bug, need help

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!
11-15-2011, 10:32 PM
Find
Darion97 Offline
Junior Member

Posts: 29
Threads: 1
Joined: Jun 2011
Reputation: 1
#2
RE: AddEntityCollideCallback bug, need help

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 ( )
{

}

11-15-2011, 10:37 PM
Find
omiwrench8k Offline
Junior Member

Posts: 6
Threads: 2
Joined: Nov 2011
Reputation: 0
#3
RE: AddEntityCollideCallback bug, need help

Thanks! Big Grin
11-16-2011, 07:40 AM
Find




Users browsing this thread: 1 Guest(s)