How to make enemy npc

I started making topics yesterday.

Click my user icon and select to send a message to me

alright im gonna leave this topic alone

1 Like

From what I read, you should learn about finite state machines. It is a good thing to know when making AI.
After that, you can continue further with Behavior Trees, they work similarly to state machines, but has a better hierarchy and can allow more complex behaviors.
You would then be able to determine if 049 is stalking or doing whatsoever and make him perform a set of actions according to his state.

Tip: when making behavior trees (or even state machines), I find it useful to take draft paper and draw a tree with conditions and actions to help you visualize what you want your AI to be. Visualization is very useful, that is why Unreal Engine has a blueprint visual scripting editor.

edit: I found this post about finite state machines.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.