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

◆ CanPutAsAttachment()

override bool CarWheel_Ruined::CanPutAsAttachment ( EntityAI parent)
inlineprivate

См. определение в файле 4_World/DayZ/Entities/Core/Inherited/InventoryItem.c строка 316

317 {
318 // So that the lambda can always put it to the Transport
319 if (parent.IsInherited(Transport) && parent.IsRuined())
320 {
321 InventoryLocation loc = new InventoryLocation();
322 if (GetInventory().GetCurrentInventoryLocation(loc))
323 {
324 return loc.GetType() == InventoryLocationType.UNKNOWN;
325 }
326
327 return false;
328 }
329
330 if (!super.CanPutAsAttachment(parent))
331 return false;
332
333 return true;
334 }
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
proto native int GetType()
returns type of InventoryLocation

Перекрестные ссылки InventoryLocation::GetType().