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

◆ UpdateMode()

void EntityLightSource::UpdateMode ( )
inlineprotected

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

84 {
85 ItemBase item = ItemBase.Cast(m_Parent);
86 if (item)
87 {
88 InventoryLocation il = new InventoryLocation;
89 item.GetInventory().GetCurrentInventoryLocation( il );
90 string slotName;
91 if (il.GetType() == InventoryLocationType.GROUND)
92 {
93 slotName = "Ground";
94 }
95 else if (il.GetSlot() != -1)
96 {
97 slotName = InventorySlots.GetSlotName(il.GetSlot());
98 }
100 }
101 }
PlayerSpawnPreset slotName
class GP5GasMask extends MaskBase ItemBase
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
Object m_Parent
Определения ScriptedLightBase.c:36
void UpdateLightMode(string slotName)
proto native int GetSlot()
returns slot id if current type is Attachment
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки InventoryLocation::GetSlot(), InventorySlots::GetSlotName(), InventoryLocation::GetType(), m_Parent, slotName и UpdateLightMode().

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