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
Monster Appear Script Problem
theknig Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jul 2012
Reputation: 0
#1
Sad  Monster Appear Script Problem

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
07-24-2012, 08:47 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#2
RE: Monster Appear Script Problem

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

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 07-24-2012, 08:57 PM by Steve.)
07-24-2012, 08:56 PM
Find
drunkmonk Offline
Member

Posts: 109
Threads: 7
Joined: Jun 2012
Reputation: 4
#3
RE: Monster Appear Script Problem

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
Find
theknig Offline
Junior Member

Posts: 2
Threads: 1
Joined: Jul 2012
Reputation: 0
#4
RE: Monster Appear Script Problem

(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
(This post was last modified: 07-24-2012, 09:27 PM by theknig.)
07-24-2012, 09:25 PM
Find
drunkmonk Offline
Member

Posts: 109
Threads: 7
Joined: Jun 2012
Reputation: 4
#5
RE: Monster Appear Script Problem

no problem! I'm glad I could help Smile
07-24-2012, 09:30 PM
Find




Users browsing this thread: 2 Guest(s)