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.
About the author
#2
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.
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.
Torque Owner Teromous
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.