DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DrawItems()

static void ScriptConsoleItemsTab::DrawItems ( string type,
float distance = 0 )
inlinestaticprotected

need better logic for cleaning

См. определение в файле ScriptConsoleItemsTab.c строка 294

295 {
296 if (!distance)
297 {
298 distance = DRAW_DISTANCE;
299 }
300 array<Object> objects = new array<Object>;
301 array<CargoBase> proxies = new array<CargoBase>;
302
303 g_Game.GetObjectsAtPosition(g_Game.GetPlayer().GetPosition(), distance, objects, proxies);
304 int i = 0;
305 foreach (Object o: objects)
306 {
307 if (o.IsKindOf(type))
308 {
309 i++;
310 ScriptConsole.m_MarkedEntities.Insert(new MapMarker(o.GetPosition(),"",COLOR_RED,eMapMarkerTypes.MARKERTYPE_MAP_BORDER_CROSS));
311 Shape shape = Shape.CreateSphere(COLOR_RED, ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE|ShapeFlags.NOZBUFFER, o.GetPosition() + "0 30 0", 1);
312 vector lines[2];
313 lines[0] = o.GetPosition();
314 lines[1] = o.GetPosition() + "0 30 0";
315 Shape line = Shape.CreateLines(COLOR_RED, ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE|ShapeFlags.NOZBUFFER, lines, 2);
316 m_DebugShapes.Insert(shape);
317 m_DebugShapes.Insert(line);
318 }
319 }
320
322 //g_Game.GetCallQueue(CALL_CATEGORY_GAMEPLAY).CallLaterByName(this, "DrawItemsClear", 5000);
323 Debug.Log(string.Format("found %1 instances of type %1", i, type));
324 }
string Debug()
Определения CachedEquipmentStorageBase.c:26
class BunkerBroadcastJsonDataBase proxies
DayZGame g_Game
Определения DayZGame.c:4074
void ScriptConsole()
Определения ScriptConsole.c:114
static ref array< Shape > m_DebugShapes
Определения ScriptConsoleItemsTab.c:14
static float DRAW_DISTANCE
Определения ScriptConsoleItemsTab.c:9
class LOD Object
const int COLOR_RED
Определения 1_Core/DayZ/constants.c:64
ShapeFlags
Определения EnDebug.c:126
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

Перекрестные ссылки COLOR_RED, DRAW_DISTANCE, g_Game, Debug::Log(), m_DebugShapes, proxies, ScriptConsole() и Shape.

Используется в OnClick() и OnKeyDown().