Game Development Community

Having an AI control a real player?

by Lally Singh · in Torque Game Engine · 01/01/2007 (8:41 pm) · 1 replies

Hey everyone, I'd like to set up a client to log into a running game on a server, and play according to a script.

The intended use is to provide a source of load for seeing how well the server responds to many users.

I've got the big books on Torque, but don't know where to start for an artificial player -- NPCs seem simple enough, but AIPCs (I guess that's the appropriate term) leave me in a bit of a rut.

If it requires some engine changes, lemme know where to start!

Thanks in advance,

-Lally

#1
01/02/2007 (12:20 am)
Why not
$player = new Player() { datablock = playerBody; };
...
(loop somewhere)
$player.dostuff
...

I think that should accomplish the server/client stress your looking for. If not let me know what im missing! Thanks.

-Jonny