Looping? (Still need help) - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Looping? (Still need help) (/thread-16458.html) |
RE: Looping? (Still need help) - SiderealStop - 06-26-2012 Thanks guys! I tried bumping up the activation distance and it didn't seem to do much. I've given up on looping and instead have gone with a different way. Instead of looping I have it following the path multiple times. Long script....unfortunately... BUT it works. He goes around maybe 20 times (would take like over an hour for it to do all 20 rounds, it takes him 3-5 mins to do one round.) This works perfectly fine =3 It looks like this, though longer (shortened so I can put it here without taking up too much space): void OnStart() { AddEntityCollideCallback("Player", "PlayerCollide", "servant_grunt_1", true, 1); } void OnEnter() { SetEntityActive("servant_grunt_1", true); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 2, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_3", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_4", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_5", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_6", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_7", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_8", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_9", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_10", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_11", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_12", 0, ""); AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_13", 0, ""); } |