Game Development Community

Very simple AI just for test

by Daniel Garita Rojas · in Torque 3D Beginner · 01/07/2014 (7:07 am) · 2 replies

I tried to find a very simple AI just for test and know were i have to put the AI, and the most simplest than i found (and updated) was this: http://www.garagegames.com/community/resources/view/21604

it's a very good tutorial but i would like begin with a more simple "AI". Maybe something that only make run a bot randomly (without pathfinding techniques if it is possible). So if anyone can give me a little tutorial of how to do that It would be very helpful.

#1
01/07/2014 (7:38 am)
In stock T3D there are functions for spawning an Ai on a path (scripts/server/aiplayer.cs).

If my memory serves me correctly ...

Using "Full Template", in the world editor you make a path, call it "path1", add some path nodes grouped under it, and then from the console enter:
AIPlayer::spawn("path1");

An Ai should drop in and run about the path.

If you look at the stock Ai functions it shouldn't be too difficult to write a simple spawn script with a "move to random point" function.
#2
01/07/2014 (10:59 am)
Thanks Steve, that was exactly what I wanted. Now i will begin your "Ai Deathmatch" tutorial. Thanks again :)