Game Development Community

Object finding?

by Drethon · in Torque Game Builder · 04/20/2009 (7:19 am) · 2 replies

How do I locate objects on the map so I can create AI actions based on seeking out or avoiding objects in the game?

#1
04/20/2009 (2:05 pm)
There a several different ways you can do this. One way you can just loop through the entire screengraph and pick out objects based on what you wanted. For example, if you gave certain units a dynamic field of Enemy and a value of 1, you can search for that in the loop.

Another way is when you create units you can add them to a simgroup and loop through that as well.
#2
04/21/2009 (6:23 am)
Simgroups look useful, I'll look further into that. Thanks!