Game Development Community

C++ ContainerRadiusSearch

by Bryce · in Torque Game Engine · 08/02/2008 (10:45 am) · 2 replies

Sorry, C++ noob here...

How would I start a containerradiussearch and cycle through the objects in C++? I'm trying to make my AI Players take less of a hit on performance...Help is always appreciated!

#1
08/02/2008 (1:05 pm)
Search for these in C++.

ConsoleFunction(containerBoxEmpty

ConsoleFunction( initContainerRadiusSearch

Since you are probably using one of those from script currently, look inside and you have the C++ code that makes it happen. Copy that into your own function, etc.

Also search for gServerContainer and check out its methods.
#2
08/02/2008 (1:22 pm)
Okay, thank you very much!