[SCRIPT] Infinite Monster Path - 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] Infinite Monster Path (/thread-23951.html) |
Infinite Monster Path - KiraImmortal - 11-27-2013 does anyone know how to make an infinite path loop for a brute? i want him not to disappear until the proper trigger is in effect. which is the best way for this? RE: Infinite Monster Path - RedKnight - 11-27-2013 That's impossible i guess. RE: Infinite Monster Path - Fatalist - 11-27-2013 http://wiki.frictionalgames.com/hpl2/tutorials/script/monsterpathnodes Look "Infinite Loops" selection. RE: Infinite Monster Path - RedKnight - 11-27-2013 (11-27-2013, 08:20 AM)Fatalist Wrote: http://wiki.frictionalgames.com/hpl2/tutorials/script/monsterpathnodes Then i was a idiot! xD RE: Infinite Monster Path - KiraImmortal - 11-29-2013 i knew that also, i wanted to make it without making a new monster entity file. RE: Infinite Monster Path - Romulator - 11-29-2013 You would need to script a loop, in which if it gets to a certain number, it resets back to 0 or something. Take this pseudocode for example: Code: Spawn Enemy What happens above is the enemy will walk to the appropriate pathnode, then to the next one. After it gets to the sixth pathnode, it will go back to the first pathnode. RE: Infinite Monster Path - KiraImmortal - 12-01-2013 yeah, but will endless cycles work properly in a map? i mean the game will do the cycle forever, and i guess it will never reach the other parts of the code. RE: Infinite Monster Path - PutraenusAlivius - 12-01-2013 (12-01-2013, 01:36 PM)KiraImmortal Wrote: yeah, but will endless cycles work properly in a map? i mean the game will do the cycle forever, and i guess it will never reach the other parts of the code. No it won't. You can specify how many times you want the Monster Path to be reloaded. Just do that instead. RE: Infinite Monster Path - KiraImmortal - 12-01-2013 okey then, thanks |