294 {
295 if (!distance)
296 {
298 }
299 array<Object> objects = new array<Object>;
300 array<CargoBase> proxies = new array<CargoBase>;
301
302 g_Game.GetObjectsAtPosition(
g_Game.GetPlayer().GetPosition(), distance, objects, proxies);
303 int i = 0;
304 foreach (
Object o: objects)
305 {
306 if (o.IsKindOf(type))
307 {
308 i++;
309 ScriptConsole.m_MarkedEntities.Insert(
new MapMarker(o.GetPosition(),
"",
COLOR_RED,eMapMarkerTypes.MARKERTYPE_MAP_BORDER_CROSS));
311 vector lines[2];
312 lines[0] = o.GetPosition();
313 lines[1] = o.GetPosition() + "0 30 0";
317 }
318 }
319
321
322 Debug.Log(
string.Format(
"found %1 instances of type %1", i, type));
323 }
static ref array< Shape > m_DebugShapes
static float DRAW_DISTANCE