Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Oh man....
DamnNoHtml Offline
Senior Member

Posts: 469
Threads: 34
Joined: Sep 2010
Reputation: 16
#4
RE: Oh man....

(06-28-2011, 04:10 PM)AlexRobillard Wrote:
(06-28-2011, 03:55 PM)Russ Money Wrote:
(06-28-2011, 03:47 PM)AlexRobillard Wrote: void AddEnemyPatrolNode(Monster1, PathNodeArea_35, 3, string& asAnimation);

void MonsterWalk1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster1" , true);
}

Remove both of the

void AddEnemyPatrolNode(Monster1, PathNodeArea_35, 3, string& asAnimation);

Maybe change it to

void MonsterWalk1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster1" , true);
AddEnemyPatrolNode("Monster1", "PathNodeArea_35", 3, "");
}

I changed it and now have this:
////////////////////////////
// Run first time starting map
void OnStart()
{
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "MonsterWalk1" , true , 1);
AddEntityCollideCallback("Player" , "Monster_Walk_Trigger" , "AddEnemyPatrolNode" , true , 1);
}

void MonsterWalk1(string &in asParent , string &in asChild , int alState)
{
SetEntityActive("Monster1" , true);
AddEnemyPatrolNode("Monster1", "PathNodeArea_35", 3, "");
}

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

}

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

}
The monster doesn't spawn when I walk to where I placed the script though (it doesn't ever spawn).

There is no problem with your code. Make sure the Script Area / Monster names all match up exactly. Its one of the more common mistakes.

Creator of Wake, Through the Portal, Insomnia, and Cycles What to do with HPL3....
06-28-2011, 04:17 PM
Find


Messages In This Thread
Oh man.... - by AlexRobillard - 06-28-2011, 03:47 PM
RE: Oh man.... - by Russ Money - 06-28-2011, 03:55 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 04:10 PM
RE: Oh man.... - by DamnNoHtml - 06-28-2011, 04:17 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 04:22 PM
RE: Oh man.... - by rojkish - 06-28-2011, 07:03 PM
RE: Oh man.... - by Kyle - 06-28-2011, 05:21 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 06:44 PM
RE: Oh man.... - by AlexRobillard - 06-28-2011, 09:00 PM



Users browsing this thread: 1 Guest(s)