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
.hps Error expected '('
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#5
RE: .hps Error expected '('

void ActivateMonster (string &in item)

{

if AM < 2

{



SetEntityActive("DungeonGrunt", true);

AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_1", 0, "idle");

AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_2", 0, "idle");



void AddTimer(string& AMTimer, float 45){



int AM++;}



};







}

This segment is your problem segment.

void ActivateMonster (string &in item)

{

if(AM < 2)

{



SetEntityActive("DungeonGrunt", true);

AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_1", 0, "idle");

AddEnemyPatrolNode("DungeonGrunt", "PathNodeArea_2", 0, "idle");
AM++;

}







}

You also had an AddTimer function in there for some reason. I'm not sure why, as it isn't referenced further in the script.

06-17-2012, 04:30 AM
Find


Messages In This Thread
.hps Error expected '(' - by Matt201496 - 06-17-2012, 02:49 AM
RE: .hps Error expected '(' - by Rapture - 06-17-2012, 03:23 AM
RE: .hps Error expected '(' - by SilentStriker - 06-17-2012, 03:28 AM
RE: .hps Error expected '(' - by Matt201496 - 06-17-2012, 03:36 AM
RE: .hps Error expected '(' - by Obliviator27 - 06-17-2012, 04:30 AM
RE: .hps Error expected '(' - by Matt201496 - 06-17-2012, 04:49 AM
RE: .hps Error expected '(' - by Obliviator27 - 06-17-2012, 04:54 AM
RE: .hps Error expected '(' - by Matt201496 - 06-17-2012, 05:09 AM



Users browsing this thread: 1 Guest(s)