Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster Appear Script Problem
Author Message
theknig Offline
Junior Member

Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Steve Offline
Member

Posts: 168
Joined: Jun 2012
Reputation: 6
Post: #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%
Crew searching.
(This post was last modified: 07-24-2012 08:57 PM by Steve.)
07-24-2012 08:56 PM
Find all posts by this user Quote this message in a reply
drunkmonk Offline
Member

Posts: 109
Joined: Jun 2012
Reputation: 4
Post: #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 all posts by this user Quote this message in a reply
theknig Offline
Junior Member

Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
drunkmonk Offline
Member

Posts: 109
Joined: Jun 2012
Reputation: 4
Post: #5
RE: Monster Appear Script Problem
no problem! I'm glad I could help Smile
07-24-2012 09:30 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)