08-09-2011, 01:24 PM
How do I make my monster disappear after it reaches a certain node?
I've tried filling in the last thread and making
For exapmle
void OnStart()
{
AddEnemyPatrolNode("Monster", "Node_1", 2, "");
AddEnemyPatrolNode("Monster", "Node_2", 2, "");
AddEnemyPatrolNode("Monster", "Node_3", 2, "");
AddEnemyPatrolNode("Monster", "Node_4", 2, "");
AddEnemyPatrolNode("Monster", "Node_5", 2, "");
AddEnemyPatrolNode("Monster", "Node_6", 2, "");
AddEnemyPatrolNode("Monster", "Node_7", 2, "MyFunc");
}
void MyFunc(string& asEntity)
{
SetEnemyDisabled("Monster", true);
}
They don't seem to work. Maybe I'm using a faulty function? Or I'm simply not putting the correct thing in that box
Please help
I've tried filling in the last thread and making
For exapmle
void OnStart()
{
AddEnemyPatrolNode("Monster", "Node_1", 2, "");
AddEnemyPatrolNode("Monster", "Node_2", 2, "");
AddEnemyPatrolNode("Monster", "Node_3", 2, "");
AddEnemyPatrolNode("Monster", "Node_4", 2, "");
AddEnemyPatrolNode("Monster", "Node_5", 2, "");
AddEnemyPatrolNode("Monster", "Node_6", 2, "");
AddEnemyPatrolNode("Monster", "Node_7", 2, "MyFunc");
}
void MyFunc(string& asEntity)
{
SetEnemyDisabled("Monster", true);
}
They don't seem to work. Maybe I'm using a faulty function? Or I'm simply not putting the correct thing in that box
Please help