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
FATAL ERROR, COULD NOT LOAD SCRIPT FILE.
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: FATAL ERROR, COULD NOT LOAD SCRIPT FILE.

You had a few extra and misplaced brackets; also, the function isn't SetEnemyActivate, it's SetEntityActive. Here's the revised script:


////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Area", "Aparecemonstruo", true, 0);
}

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

////////////////////////////
// Run when entering map
void OnEnter()
{


}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}

I hope that helped Tongue

I rate it 3 memes.
08-01-2012, 01:53 PM
Find


Messages In This Thread
RE: FATAL ERROR, COULD NOT LOAD SCRIPT FILE. - by Adny - 08-01-2012, 01:53 PM



Users browsing this thread: 2 Guest(s)