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

◆ LinkPowerGeneratorServer()

void Land_WarheadStorage_PowerStation::LinkPowerGeneratorServer ( )
inlineprotected

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

60 {
61 m_PowerGenerator = PowerGeneratorStatic.GetClosestGenerator(GetPowerGeneratorSpawnPos(), 5);
62
64 {
66
67 vector thisOrientation = GetOrientation();
68 m_PowerGenerator = PowerGeneratorStatic.Cast(GetGame().CreateObjectEx("PowerGeneratorStatic", GetPowerGeneratorSpawnPos(), flags, RF_IGNORE));
69 m_PowerGenerator.SetOrientation(thisOrientation + "180 0 0");
70 }
71
72 m_PowerGenerator.SetParent(this);
73
74 if (GetGame().IsServer())
76
77 //DebugPrepareGenerator();
78
79 if (m_PowerGenerator.GetCompEM().IsWorking())
80 OnGeneratorStart();//the generator can be already running when we link to it as it has a persistent running state
81 }
vector GetOrientation()
Определения AreaDamageManager.c:306
const int ECE_SETUP
Определения CentralEconomy.c:9
const int ECE_UPDATEPATHGRAPH
Определения CentralEconomy.c:13
const int RF_IGNORE
Определения CentralEconomy.c:56
const int ECE_NOLIFETIME
Определения CentralEconomy.c:29
const int ECE_CREATEPHYSICS
Определения CentralEconomy.c:16
PowerGeneratorStatic m_PowerGenerator
proto native CGame GetGame()

Перекрестные ссылки ECE_CREATEPHYSICS, ECE_NOLIFETIME, ECE_SETUP, ECE_UPDATEPATHGRAPH, PowerGeneratorStatic::GetClosestGenerator(), GetGame(), GetOrientation(), GetPowerGeneratorSpawnPos(), m_PowerGenerator, OnAfterLoadUpdate(), OnGeneratorStart() и RF_IGNORE.

Используется в DeferredInit().