omiwrench8k
Junior Member
Posts: 6
Threads: 2
Joined: Nov 2011
Reputation:
0
|
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 |
|
Darion97
Junior Member
Posts: 29
Threads: 1
Joined: Jun 2011
Reputation:
1
|
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 |
|
omiwrench8k
Junior Member
Posts: 6
Threads: 2
Joined: Nov 2011
Reputation:
0
|
RE: AddEntityCollideCallback bug, need help
Thanks!
|
|
11-16-2011, 07:40 AM |
|