02-08-2012, 09:37 PM
Hello.
I've recently discovered that you can modify the Path of the Enemy , by adding PathNodes point , and script a bit.
But my probleme is :
The Enemy wait like 2 seconds each Path.
I checked my PatrolNodes line (in script file) , and it looks like this :
AddEnemyPatrolNode("monstre_1", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_2", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_4", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_5", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_6", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_7", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_8", 0.0f, "");
I puted "0.0f" , because i don't want the enemy to wait at each path , but he still do.
Any help ?
I've recently discovered that you can modify the Path of the Enemy , by adding PathNodes point , and script a bit.
But my probleme is :
The Enemy wait like 2 seconds each Path.
I checked my PatrolNodes line (in script file) , and it looks like this :
AddEnemyPatrolNode("monstre_1", "PathNodeArea_1", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_2", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_3", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_4", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_5", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_6", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_7", 0.0f, "");
AddEnemyPatrolNode("monstre_1", "PathNodeArea_8", 0.0f, "");
I puted "0.0f" , because i don't want the enemy to wait at each path , but he still do.
Any help ?