DamnNoHtml
Senior Member
Posts: 469
Threads: 34
Joined: Sep 2010
Reputation:
16
|
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 |
|