3 override void CreateActionComponent()
42 if ( item.GetInventory() )
45 item.GetInventory().GetCurrentInventoryLocation(loc);
47 if ( loc.GetIdx() > -1 )
66 return ActionCondition(action_data.m_Player, action_data.m_Target,action_data.m_MainItem);
74 if (targetItem && item)
77 if (!targetItem.IsIgnited() && !
IsItemInCargoOfSomething(targetItem) && item.CanIgniteItem(targetItem) && targetItem.CanBeIgnitedBy(item))
80 if (targetItem.IsKindOf(
"Fireplace"))
82 if (Fireplace.Cast(targetItem).IsOven())
85 if (Fireplace.CanIgniteEntityAsFireplace(targetItem))
94 else if (!item.IsIgnited() && !
IsItemInCargoOfSomething(item) && targetItem.CanIgniteItem(item) && item.CanBeIgnitedBy(targetItem))
106 ItemBase item = action_data.m_MainItem;
108 bool is_ignition_successful;
112 if ( item.CanIgniteItem( target_item ) )
114 is_ignition_successful = target_item.IsThisIgnitionSuccessful( item );
115 ignited_item = target_item;
116 fire_source_item = item;
118 else if ( item.CanBeIgnitedBy( target_item ) )
120 is_ignition_successful = target_item.IsTargetIgnitionSuccessful( item );
122 fire_source_item = target_item;
125 if ( is_ignition_successful )
127 fire_source_item.OnIgnitedTarget( ignited_item );
128 ignited_item.OnIgnitedThis( fire_source_item );
132 fire_source_item.OnIgnitedTargetFailed( ignited_item );
133 ignited_item.OnIgnitedThisFailed( fire_source_item );
140 if ( super.SetupAction( player, target, item, action_data, extra_data ) )
156 if ( target_item.HasFlammableMaterial() )