294 {
295 if (!distance)
296 {
298 }
299 array<Object> objects = new array<Object>;
300 array<CargoBase> proxies = new array<CargoBase>;
301
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 }
proto native void GetObjectsAtPosition(vector pos, float radius, out array< Object > objects, out array< CargoBase > proxyCargos)
Returns list of all objects in circle "radius" around position "pos".
static ref array< Shape > m_DebugShapes
static float DRAW_DISTANCE
proto native CGame GetGame()
class JsonUndergroundAreaTriggerData GetPosition