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

◆ ActionCondition()

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

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

18 {
19 Object target_object = target.GetObject();
20
21 if ( target_object && target_object.IsInherited( BarrelHoles_ColorBase ) )
22 {
23 BarrelHoles_ColorBase fireplace_barrel = BarrelHoles_ColorBase.Cast( target_object );
24
25 if ( fireplace_barrel.IsOpen() && fireplace_barrel.GetInventory().AttachmentCount() == 0 && fireplace_barrel.IsCargoEmpty() )
26 {
27 return true;
28 }
29 }
30
31 return false;
32 }
class LOD Object

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