Game Development Community

Finding an Object...

by James Laker (BurNinG) · in Torque Game Engine · 04/19/2004 (1:29 am) · 2 replies

Probably a stupid question, but i can't get my mind around
it. I'm a player... How do i find the Object closest to me?
Eg. The closest bot, or tree ?

Thanx!
Me

#1
04/19/2004 (1:38 am)
You could do something like what is in radiusdamage.cs and do a container search by a certian radius to see what objects are close.
#2
04/19/2004 (1:42 am)
AHA, Thanx :)