Game Development Community

Guards spawn?

by Teromous · in Torque Game Engine · 09/30/2005 (10:00 pm) · 3 replies

I'm not sure if I'm doing something wrong here, but I can't get the guards to spawn in chapter 7 of A3D.

#1
10/01/2005 (8:56 pm)
Just an update, I did solve my problem. In the function "createbots" is the path labeled "MissionGroup/AIDropPoints/Guard" and you have to have those sim groups labeled exactly as it is written, or update the path to something else like "MissionGroup/AI/Guard" if you have the sim group name changed to something else.

Also on a side note, I'm still working on the AI chapter. The guys are turning around in circles looking for me, but when I approach them they do not fire at me. Also they are not taking any damage. I'm using the code from the CD (just to make sure I didn't type anything wrong) and it doesn't seem to be working like the book describes it.
#2
10/02/2005 (4:48 am)
Just an update for those who might also be doing the AI from the A3D book. If you apply the code directly to a game you've been working on and it crashes, it could be because:

datablock PlayerData(AIGuardDB : xxxxx)

where xxxxx is the data located in your player.cs file at:

datablock PlayerData( xxxxx )

It may be trivial for some of you who are great coders, but it took me a good deal of time to find. Also I'm still having a problem with the bots just sitting there and rotating. They don't take damage, and they don't fire. I hope to either get an answer or post one myself. Good luck to the rest of you working away on the book.
#3
10/02/2005 (8:10 am)
Read this it should explain what is happening.