Frictional Games Forum (read-only)
enemy and pathnode - 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: enemy and pathnode (/thread-9920.html)



enemy and pathnode - good871 - 08-22-2011

Hi, I have question.

In my costume story I have a monster, it can be anywhere in map, but after some time I want get it to one select pathnode.

So how to do? Timer and this stuff I can do, it's working, but Monster don't go to pathnode(which I create in map). I use script

Code:
void AddEnemyPatrolNode(string& asName, string& asNodeName, float afWaitTime, string& asAnimation);


Where I make a mistake?


RE: enemy and pathnode - Elven - 08-22-2011

You need correct values for start! First of all you need condition to make it start. Best condition is that moment when you make it spawn itself. Else... Let's say you create area where he goes and when he goes area then u activate it. You put exactly same thing what you said up there, just change the values.

string& asName - put name of your monster there. For example "grunt1"
string& asNodeName - name of node u want it to go. I use the original names, but if you want you can put special name, like "path1".
float afWaitTime - how long you want your monster to wait at that point where u sent him. Since u want him to stop there for some time, then you can put like 10 seconds
string& asAnimation - animation what you want to use. You can use "", meaning no animation is needed.

And it is done. Now just add the order u want it to go. He goes into upper one first, then to secondary place.

I am sorry if I didn't answer you question, you can easily specify in what you problem might have Smile