Enemy States - 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 Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: Enemy States (/thread-52421.html) |
Enemy States - Newsman Waterpaper - 08-26-2016 PHP Code: string& GetEnemyStateName(string &in asName); Ever since this was added to the game with the 1.3 update, it has always confused me and I felt the description of it didn't really make things clear me but today I found what you could do with it. I'm surprised no-one brought it up. Here are the states I have discovered that an enemy can be in so far. Spoiler below!
You can use the GetEnemyStateName function the same way as any other Get function. Example: PHP Code: if(GetEnemyStateName("Enemy") == "Hunt") Hopefully, this would allow people to mess around with enemies more and have some interesting encounters. I'm surprised no-one has talked about this. I would really like to hear people's ideas about this and see what cool stuff they come up with. RE: Enemy States - Mudbill - 08-26-2016 This makes AI a lot more programmable. |