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
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


Messages In This Thread
Next script error - by MaksoPL - 03-29-2014, 09:56 AM
RE: Next script error - by 7heDubz - 03-29-2014, 10:42 AM



Users browsing this thread: 1 Guest(s)