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

◆ ActionCondition()

override bool ActionTakeOvenIndoor::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

14 {
15 Object target_object = target.GetObject();
16
17 //empty hands --interact action base condition
18 if ( target_object && target_object.IsFireplace() )
19 {
20 OvenIndoor fireplace_indoor = OvenIndoor.Cast( target_object );
21
22 if ( fireplace_indoor && !fireplace_indoor.HasAshes() && !fireplace_indoor.IsBurning() && fireplace_indoor.IsCargoEmpty() && !fireplace_indoor.DirectCookingSlotsInUse() )
23 {
24 InventoryLocation targetIL = new InventoryLocation;
25 bool found = player.GetInventory().FindFirstFreeLocationForNewEntity( m_NewItemTypeName, FindInventoryLocationType.ANY, targetIL );
26 return found;
27 }
28 }
29
30 return false;
31 }
FindInventoryLocationType
flags for searching locations in inventory
Определения InventoryLocation.c:17
string m_NewItemTypeName
Определения ActionTakeOvenIndoor.c:4
class LOD Object

Перекрестные ссылки ActionTarget и m_NewItemTypeName.