Frictional Games Forum (read-only)
Newbie needs help! [SOLVED] - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Newbie needs help! [SOLVED] (/thread-6181.html)

Pages: 1 2


RE: Newbie needs help! - Seragath - 01-12-2011

You put both SetEntityActive in the same function.

So he will activate and instantly deactivate. I think that if monster does not see anyone at the end of the pathnode he will disappear. Else he will chase you till he loses sight of you.

So get rid of the last "SetEntityActive"


RE: Newbie needs help! - pwnvader360 - 01-13-2011

(01-12-2011, 08:34 PM)Seragath Wrote: You put both SetEntityActive in the same function.

So he will activate and instantly deactivate. I think that if monster does not see anyone at the end of the pathnode he will disappear. Else he will chase you till he loses sight of you.

So get rid of the last "SetEntityActive"

SUCCESS! But there's one last tiny problem - nothing serious. When servant_grunt_1 steps on the first PathNode, he stops for about 2 seconds, then continues. How do I make him continuously go through each PathNode without hesitation?


RE: Newbie needs help! - Seragath - 01-13-2011

(01-13-2011, 12:14 AM)pwnvader360 Wrote:
(01-12-2011, 08:34 PM)Seragath Wrote: You put both SetEntityActive in the same function.

So he will activate and instantly deactivate. I think that if monster does not see anyone at the end of the pathnode he will disappear. Else he will chase you till he loses sight of you.

So get rid of the last "SetEntityActive"

SUCCESS! But there's one last tiny problem - nothing serious. When servant_grunt_1 steps on the first PathNode, he stops for about 2 seconds, then continues. How do I make him continuously go through each PathNode without hesitation.

Hmm...I guess doing

Code:
AddEnemyPatrolNode("NAME OF YOUR MONSTER", "NAME OF YOUR PATHNODE", 0.1f, "");

? Not sure. Exactly how to do it. Mess with the last number for a bit till it gets what you want it to be.


RE: Newbie needs help! - pwnvader360 - 01-13-2011

(01-13-2011, 01:08 PM)Seragath Wrote:
(01-13-2011, 12:14 AM)pwnvader360 Wrote:
(01-12-2011, 08:34 PM)Seragath Wrote: You put both SetEntityActive in the same function.

So he will activate and instantly deactivate. I think that if monster does not see anyone at the end of the pathnode he will disappear. Else he will chase you till he loses sight of you.

So get rid of the last "SetEntityActive"

SUCCESS! But there's one last tiny problem - nothing serious. When servant_grunt_1 steps on the first PathNode, he stops for about 2 seconds, then continues. How do I make him continuously go through each PathNode without hesitation.

Hmm...I guess doing

Code:
AddEnemyPatrolNode("NAME OF YOUR MONSTER", "NAME OF YOUR PATHNODE", 0.1f, "");

? Not sure. Exactly how to do it. Mess with the last number for a bit till it gets what you want it to be.

Yes, this worked. I am starting to get used to scripting now. Although I still may need to refer to a tutorial every now and then.