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

◆ GetDebugText()

string Entity::GetDebugText ( )
inlineprotected

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

3250 {
3251 string text = string.Empty;
3252
3253 text += "Weight: " + GetWeightEx() + "\n";
3254 text += "Disabled: " + GetIsSimulationDisabled() + "\n";
3255 #ifdef SERVER
3256 if (GetEconomyProfile())
3257 text += "CE Lifetime default: " + (int)GetEconomyProfile().GetLifetime() + "\n";
3258 text += "CE Lifetime remaining: " + (int)GetLifetime() + "\n";
3259 #endif
3260
3261 ComponentEnergyManager compEM = GetCompEM();
3262 if (compEM)
3263 {
3264 text += "Energy Source: " + Object.GetDebugName(compEM.GetEnergySource()) + "\n";
3265 text += "Switched On: " + compEM.IsSwitchedOn() + "\n";
3266 text += "Is Working: " + compEM.IsWorking() + "\n";
3267 }
3268
3269 return text;
3270 }
Param3 int
proto native float GetLifetime()
bool IsWorking()
Energy manager: Returns true if this device is working right now.
Определения ComponentEnergyManager.c:900
EntityAI GetEnergySource()
Energy manager: Returns the energy source this device is plugged into.
Определения ComponentEnergyManager.c:1292
bool IsSwitchedOn()
Energy manager: Returns state of the switch. Whenever the device is working or not does not matter....
Определения ComponentEnergyManager.c:866
float GetWeightEx(bool forceRecalc=false)
returns overall weight of the entity, 'forceRecalc = true' is meant to be used only when debugging,...
Определения 3_Game/Entities/EntityAI.c:3570
proto native float GetLifetime()
Get remaining economy lifetime (seconds)
proto native CEItemProfile GetEconomyProfile()
Get economy item profile (if assigned, otherwise null)
ComponentEnergyManager GetCompEM()
Определения 3_Game/Entities/EntityAI.c:3363
class LOD Object

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