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

◆ CanPutAsAttachment()

override bool CarWheel_Ruined::CanPutAsAttachment ( EntityAI parent)
inlineprivate

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

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

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