Getting more then 1 character/bot to work
by dArchitect · in Technical Issues · 01/31/2008 (9:57 am) · 5 replies
I am using aiclient and aipatrol as starting points to learn AI. What I am trying to do is get, not only Kork attacking me but, other characters attacking at the same time. Any ideas?
About the author
#2
02/02/2008 (6:16 am)
I've haven't viewed these resources so I don't know exactly what you should do, but try finding the spawn function for the bots, and calling it more then once.
#3
02/04/2008 (6:55 pm)
Let me rephrase this. What I am trying to do is to have several different enemies attacking me at the same time. So when I enter a level I have several tanks, jeeps, guards, snipers, etc., attacking me rather then just one as I have right now.
#4
Here's the link
www.garagegames.com/uploaded/code/6742.newaiplayer.cs
Look at the functions called "LoadEntities, Spawn, and SpawnAtMarker" and it should give you an idea on what to do.
02/05/2008 (3:58 pm)
There is a resource that lets you place a marker in the game and the bot spawns where the marker is located. Here's the link
www.garagegames.com/uploaded/code/6742.newaiplayer.cs
Look at the functions called "LoadEntities, Spawn, and SpawnAtMarker" and it should give you an idea on what to do.
#5
02/23/2008 (9:09 am)
Cool i was looking for something like that. :)
Torque Owner Jamal Moon
%enemy = %client.player %obj.setAimLocation(%enemy, "0 0 2.25"); // Now the bot will aim for the player's head %obj.setImageTrigger(0,1); // This makes the bot fireNOTE: I haven't tried it yet, so it may not work.