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
Why is my custom story not working!?!?!?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#18
RE: Why is my custom story not working!?!?!?

(12-07-2012, 08:51 PM)Gamerlord08 Wrote: it is a .hps file, i get the (25: 2) unexpected end of file error, here's what i'm using with the custom story, everything else checks out.

///////////////////////

// Run when starting map

void OnStart()

{

PlayMusic("01_amb_darkness.ogg", true, 1.0f, 0, 0, true);

AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);

AddEntityCollideCallback("Player", "MonsterEnd", true, 1);

AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", bool ("abDeleteOnCollide", int (alStates)

),





void MonsterFunction(string &in asParent, string &in asChild, int alState)

{

SetEntityActive("servant_grunt_1", true);

AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_1", 2, "");

AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_2", 0, "");

AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_3", 0, "");

}

//////////////////////

// Run when leaving map

void OnLeave()

{





}

see if you can figure this out, i cannot put my finger on why it's saying this. also, it just doesn't work, amnesia works fine unless i try my custom story.
void OnStart()

{

PlayMusic("01_amb_darkness.ogg", true, 1.0f, 0, 0, true);

AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);

AddEntityCollideCallback("Player", "MonsterEnd", true, 1);

AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);

}





void MonsterFunction(string &in asParent, string &in asChild, int alState)

{

SetEntityActive("servant_grunt_1", true);

AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_1", 2, "");

AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_2", 0, "");

AddEnemyPatrolNode("servant_Grunt_1", "PathNodeArea_3", 0, "");

}

//////////////////////

// Run when leaving map

void OnLeave()

{





}

You had the last AddEntityCollideCallback wrong Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-07-2012, 08:55 PM
Find


Messages In This Thread
RE: Why is my custom story not working!?!?!? - by The chaser - 12-07-2012, 08:55 PM



Users browsing this thread: 2 Guest(s)