enemies are bent - 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: enemies are bent (/thread-17675.html) |
enemies are bent - Lake - 08-11-2012 when I activate a monster it is wrong, his back to the player. Why? P.S. the monster in level editor is straight, are in the game is wrong RE: enemies are bent - Adny - 08-11-2012 Use path nodes to influence which direction you want him to go; alternatively, if you want him to instantly chase the player you can use ShowEnemyPlayerPosition. Here are both of those functions: ShowEnemyPlayerPosition(string& asName); asName = name of enemy AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation); asName = name of the enemy asNodeName = name of the path node (found under 8 in the level editor) afWaitTime = time the enemy waits at a node (0 will make them wait a default amount of time, if you want the enemy to instantly move to the next, use 0.1f) asAnimation = the animation to play at each node. Unless you're making a jumpscare map, I'd advise against spawning an enemy in plain sight of the player; try spawning him in an area where the player can't instantly see him, then use one of the aforementioned functions to bring him to the player. Hope that helped. RE: enemies are bent - Lake - 08-11-2012 Perfect, now work |