Page 1 of 1

Follow player AI

Posted: Sat May 02, 2015 12:19 am
by saindd
I went through the FPS tutorial by GarageGames but i wasn't able to find any docs on enemy AI. I wanted something very simple: a zombie that follows the player and melee attacks him. Do i have to generate a navmesh, like in Unity, or is it pure, using A*? Is there something built into the engine for this?

Also, how do i make the AI networked? So another player in the server can also kill him.

Re: Follow player AI

Posted: Sat May 02, 2015 1:44 am
by rlranft
Start with the RTS Prototype - that'll get you making AIPlayer objects that you can control. ... otype.html

Also, look at the AI Tutorial scripts : - they'll show you one way to make your units think, attack, work in teams, and communicate.

Recast/Detour is built into T3D - so you have a nav-mesh available if you need smarter pathfinding. The way the tutorials are set up the units will run into stuff and get stuck sometimes, but if you generate a nav-mesh and use it to generate paths, then tell the units to follow those paths, you'll be good to go.

AIPlayer is networked automatically - you create the unit on the server and everyone sees it. It's magic (unless you really want to spend some time reading networking code....).

Re: Follow player AI

Posted: Sat May 02, 2015 5:18 am
by Johxz
And you have this... how can I start with AI on T3D?

Re: Follow player AI

Posted: Mon May 04, 2015 4:20 am
by Jason Campbell
This guy made the most basic of Zombie AI.