10-03-2012, 05:37 PM
Evening everyone, I'm having a tiny issue with Suitors.
They should spawn where indicated THEN follow a path. The problem is that they spawn and travel mindlessly "somewhere", they focus with one corner of the map and keep going that way. I've noticed that in that same corner, way beyond, there's a level door.
The script for their behaviour is right here
Thanks in advance \o
They should spawn where indicated THEN follow a path. The problem is that they spawn and travel mindlessly "somewhere", they focus with one corner of the map and keep going that way. I've noticed that in that same corner, way beyond, there's a level door.
The script for their behaviour is right here
Spoiler below!
void HLFiveScript (string &in asEntity, string &in asChild, int alState)
{
SetEntityActive("Suitor_1", true);
SetEntityActive("Suitor_2", true);
SetEntityActive("HL_12", false);
SetEntityActive("HL_13", false);
AddEnemyPatrolNode("Suitor_1", "Helloworld_1", 1, "notice2");
AddEnemyPatrolNode("Suitor_1", "Depths", 0, "");
AddEnemyPatrolNode("Suitor_2", "Helloworld_2", 1, "notice1");
AddEnemyPatrolNode("Suitor_2", "Depths", 0, "");
}
{
SetEntityActive("Suitor_1", true);
SetEntityActive("Suitor_2", true);
SetEntityActive("HL_12", false);
SetEntityActive("HL_13", false);
AddEnemyPatrolNode("Suitor_1", "Helloworld_1", 1, "notice2");
AddEnemyPatrolNode("Suitor_1", "Depths", 0, "");
AddEnemyPatrolNode("Suitor_2", "Helloworld_2", 1, "notice1");
AddEnemyPatrolNode("Suitor_2", "Depths", 0, "");
}
Thanks in advance \o