Frictional Games Forum (read-only)

Full Version: Monster Appear Script Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 Big Grin
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 Big Grin
You have a capital on the "b" in callback, switch it a lower case and see if that helps
(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 helps
It Worked Thanks Big Grin
no problem! I'm glad I could help Smile