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

◆ IsItemInCargoOfSomething()

bool IsItemInCargoOfSomething ( ItemBase item)

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

41 {
42 if ( item.GetInventory() )
43 {
45 item.GetInventory().GetCurrentInventoryLocation(loc);
46
47 if ( loc.GetIdx() > -1 )
48 {
49 return true;
50 }
51 }
52
53 return false;
54 }
proto native int GetIdx()
returns index of cargo if current type is Cargo / ProxyCargo
InventoryLocation.
Определения InventoryLocation.c:29

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

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