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

◆ GetDebugText()

string Entity::GetDebugText ( )
inlineprotected

См. определение в файле 3_Game/DayZ/Entities/EntityAI.c строка 3296

3297 {
3298 string text = string.Empty;
3299
3300 text += "Weight: " + GetWeightEx() + "\n";
3301 text += "Disabled: " + GetIsSimulationDisabled() + "\n";
3302 #ifdef SERVER
3303 if (GetEconomyProfile())
3304 text += "CE Lifetime default: " + (int)GetEconomyProfile().GetLifetime() + "\n";
3305 text += "CE Lifetime remaining: " + (int)GetLifetime() + "\n";
3306 #endif
3307
3308 ComponentEnergyManager compEM = GetCompEM();
3309 if (compEM)
3310 {
3311 text += "Energy Source: " + Object.GetDebugName(compEM.GetEnergySource()) + "\n";
3312 text += "Switched On: " + compEM.IsSwitchedOn() + "\n";
3313 text += "Is Working: " + compEM.IsWorking() + "\n";
3314 }
3315
3316 return text;
3317 }
Param3 int
proto native float GetLifetime()
bool IsWorking()
Energy manager: Returns true if this device is working right now.
Определения ComponentEnergyManager.c:938
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
Определения ComponentEnergyManager.c:1337
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
Определения ComponentEnergyManager.c:897
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
proto native float GetLifetime()
Get remaining economy lifetime (seconds)
proto native CEItemProfile GetEconomyProfile()
Get economy item profile (if assigned, otherwise null)
ComponentEnergyManager GetCompEM()
class LOD Object

Перекрестные ссылки string::Empty, GetCompEM(), GetEconomyProfile(), ComponentEnergyManager::GetEnergySource(), GetLifetime(), GetWeightEx(), ComponentEnergyManager::IsSwitchedOn(), ComponentEnergyManager::IsWorking() и Object.