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

◆ CanPutAsAttachment()

override bool CarWheel_Ruined::CanPutAsAttachment ( EntityAI parent)
inlineprotected

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

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

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