Frictional Games Forum (read-only)
[SCRIPT] Keep enemies from disappearing after a while - 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: [SCRIPT] Keep enemies from disappearing after a while (/thread-21944.html)



Keep enemies from disappearing after a while - richm0nkey - 06-27-2013

Trying to keep the enemies from disappearing so they will patrol instead but I can't seem to find the proper function.


RE: Keep enemies from disappearing after a while - PutraenusAlivius - 06-27-2013

For how many times and how long do you want him to patrol?


RE: Keep enemies from disappearing after a while - Wapez - 06-27-2013

You can add script areas on his first and last PathNode that becomes triggered when he enters them, and calls a function that assigns him the same PathNodes again, only when he's walking back, the order of the PathNodes needs to be reversed. That'll make him patrol endlessly.


RE: Keep enemies from disappearing after a while - richm0nkey - 06-27-2013

(06-27-2013, 01:54 PM)Wapez Wrote: You can add script areas on his first and last PathNode that becomes triggered when he enters them, and calls a function that assigns him the same PathNodes again, only when he's walking back, the order of the PathNodes needs to be reversed. That'll make him patrol endlessly.

Thanks, sounds like that will work great


RE: Keep enemies from disappearing after a while - Wapez - 06-27-2013

Anytime man! Smile