Frictional Games Forum (read-only)
How d i add animations to pathnodes? - 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: How d i add animations to pathnodes? (/thread-20470.html)



How d i add animations to pathnodes? - tonitoni1998 - 02-23-2013

i just doesnt work for some reason

Code:
void StopLook1(string &in timer_name)
{
    StopPlayerLookAt();
    StartPlayerLookAt("block_box_2", 15, 17, "");
    AddTimer("", 0.3f, "FadeIn1");
    SetEntityActive("suitor_1", true);
    AddEnemyPatrolNode("suitor_1", "PathNodeArea_1", 5, "flinch.dae_anim");
}
what do i have to insert to get the animation?


RE: How d i add animations to pathnodes? - NaxEla - 02-23-2013

If you open the suitor in the model editor, you can look at its animations. Just click Settings > Animations. The one called Flinch uses flinch.dae_anim, so your line would look like this:
Code:
AddEnemyPatrolNode("suitor_1", "PathNodeArea_1", 5, "Flinch");