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.
Rassagai Offline
Junior Member

Posts: 13
Threads: 5
Joined: Aug 2012
Reputation: 0
#1
FATAL ERROR, COULD NOT LOAD SCRIPT FILE.

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

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


}

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


void Aparecemonstruo(string &in asParent, string &in asChild, int alState)
{
SetEnemyActivate("enemigo", true);
ShowEnemyPlayerPosition("enemigo");
}
It's wrong? Huh
08-01-2012, 01:45 PM
Find
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
Rassagai Offline
Junior Member

Posts: 13
Threads: 5
Joined: Aug 2012
Reputation: 0
#3
RE: FATAL ERROR, COULD NOT LOAD SCRIPT FILE.

THANKS THANKS THANTS!!!!!!!!!! YOU ARE THE BEST!!!! I LOVE YOU!!! Big Grin Big Grin Big Grin
08-01-2012, 01:57 PM
Find




Users browsing this thread: 1 Guest(s)