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
Script Help Next script error
MaksoPL Offline
Member

Posts: 51
Threads: 26
Joined: Mar 2014
Reputation: 0
#1
Next script error

Hello. I got a new script error. ExecuteString (1,1) ERR: No Matching signature of OnLeave()
main (9,35): ERR: Unexpected token
That's my 2 script:

void OnStart ()
{
AddEntityCollideCallback("Player","monster1","Monster",true,1);
}

void Monster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt1",true);
ShowEnemyPlayerPosition("grunt1");
03-29-2014, 09:56 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#2
RE: Next script error

Your Code
void OnStart ()
{
AddEntityCollideCallback("Player", "monster1", "Monster", true, 1);
}

void Monster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt1", true);
ShowEnemyPlayerPosition("grunt1");

I added more spacing (not necessary but good for looking back through the code and ridding it of pesky bugs)
and at the end you were missing a }

Changed Code
void OnStart ()
{
AddEntityCollideCallback("Player","monster1","Monster",true,1);
}

void Monster(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("grunt1",true);
ShowEnemyPlayerPosition("grunt1");
}

(This post was last modified: 03-29-2014, 10:44 AM by 7heDubz.)
03-29-2014, 10:42 AM
Find




Users browsing this thread: 1 Guest(s)