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

◆ EnableLight()

void VehicleLightsComponent::EnableLight ( string name)
inlineprotected

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

84 {
86 if (data)
87 {
88 if (!data.m_Light)
89 {
90 VehicleLightBase light = VehicleLightBase.Cast(ScriptedLightBase.CreateLight(VehicleLightBase));
91 light.SetLightProfile(data.m_LightProfile);
92
93 data.m_Light = light;
94 }
95 #ifdef DIAG_DEVELOPER
96 else
97 ErrorEx(string.Format("m_Light is already assigned for '%1' (parent:%2)", name, m_Parent));
98 #endif
99 }
100 #ifdef DIAG_DEVELOPER
101 else
102 ErrorEx(string.Format("'%1' is not registered light key", name));
103 #endif
104 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void VehicleLightData(VehicleLightProfileBase profile)
Определения VehicleLightsComponent.c:21
void SetLightProfile(notnull VehicleLightProfileBase profile)
Определения VehicleLightBase.c:21
EntityAI m_Parent
Определения VehicleLightsComponent.c:43
ref map< string, ref VehicleLightData > m_LightMap
Определения VehicleLightsComponent.c:46
enum ShapeType ErrorEx

Перекрестные ссылки ErrorEx, m_LightMap, m_Parent, name, VehicleLightBase::SetLightProfile() и VehicleLightData().