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
Need various information
KenOfAllTrades Offline
Member

Posts: 53
Threads: 2
Joined: Apr 2011
Reputation: 0
#13
RE: Need various information

Okay, I ask for help once again. Hope you don't mind :<

OnStart()
{
SetEntityPlayerInteractCallback("lantern_1", "Monster1", true);
}


void Monster1(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
SetEntityActive("servant_grunt_1", true);
AddTimer("Monster", 4, "Monster2");
}

void Monster2(string &in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "");
AddEntityCollideCallback("servant_grunt_1", "PathNodeArea_2", "Leave1", true, 1);
}

void Leave1(string &in asParent, string &in asChild, int alState)
{
     SetEntityActive("servant_grunt_1", false);
    SetEntityActive("Sound_1", true);
    AddTimer("Doorclose", 3.5, "Doorclosed");
}

void Doorclosed(string &in asParent, string &in asChild, int alState)
{
    SetEntityActive("Sound_1", false);
}

I've tried looking through the script but I can't find out what's wrong. When I start it, it just says "FATAL ERROR: Could not load script file 'custom_stories/Test/maps/Cellar.hps'! main (1, 8) : ERR : Expected identifier"

And instead of correcting my script, can you tell me what I did wrong so I can learn from my mistake?

I probably made a LP of this! Youtube channel here!
05-28-2011, 09:00 PM
Find


Messages In This Thread
Need various information - by KenOfAllTrades - 05-25-2011, 07:40 PM
RE: Need various information - by palistov - 05-25-2011, 08:00 PM
RE: Need various information - by KenOfAllTrades - 05-25-2011, 08:12 PM
RE: Need various information - by palistov - 05-25-2011, 10:34 PM
RE: Need various information - by KenOfAllTrades - 05-26-2011, 02:41 PM
RE: Need various information - by palistov - 05-27-2011, 12:50 AM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 10:09 AM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 07:03 PM
RE: Need various information - by Kyle - 05-27-2011, 07:13 PM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 07:50 PM
RE: Need various information - by Kyle - 05-27-2011, 07:53 PM
RE: Need various information - by KenOfAllTrades - 05-27-2011, 08:20 PM
RE: Need various information - by KenOfAllTrades - 05-28-2011, 09:00 PM
RE: Need various information - by Kyle - 05-28-2011, 09:04 PM
RE: Need various information - by KenOfAllTrades - 05-28-2011, 09:08 PM
RE: Need various information - by Kyle - 05-28-2011, 09:10 PM
RE: Need various information - by KenOfAllTrades - 05-30-2011, 07:08 PM
RE: Need various information - by Kyle - 05-30-2011, 10:29 PM
RE: Need various information - by KenOfAllTrades - 05-30-2011, 10:32 PM
RE: Need various information - by Kyle - 05-30-2011, 10:35 PM
RE: Need various information - by KenOfAllTrades - 06-01-2011, 12:45 PM
RE: Need various information - by KenOfAllTrades - 06-06-2011, 08:17 AM
RE: Need various information - by Kyle - 06-06-2011, 11:15 AM
RE: Need various information - by KenOfAllTrades - 06-06-2011, 11:18 AM



Users browsing this thread: 4 Guest(s)