7 m_Name =
"#STR_RefuelTorch0";
62 Rag rag = Rag.Cast(ingredients[0]);
63 Torch torch = Torch.Cast(ingredients[1]);
68 Rag rag_on_torch = Rag.Cast( torch.GetInventory().FindAttachment( rag.GetInventory().GetSlotId(0) ) );
72 if (rag_on_torch.GetQuantity() == rag_on_torch.GetQuantityMax() )
83 Rag rag = Rag.Cast(ingredients[0]);
84 Torch torch = Torch.Cast(ingredients[1]);
86 if ( !
GetGame().IsMultiplayer() )
89 rag.GetInventory().GetCurrentInventoryLocation( loc );
90 player.GetInventory().ClearInventoryReservationEx( rag, loc );
93 Rag rag_on_torch = Rag.Cast( torch.GetInventory().FindAttachment( rag.GetInventory().GetSlotId(0) ) );
97 rag_on_torch.CombineItems(rag,
false);
103 player.ServerTakeEntityToTargetAttachment(torch, rag);
107 player.LocalTakeEntityToTargetAttachment(torch, rag);
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultToInventory[MAXIMUM_RESULTS]
override bool CanDo(ItemBase ingredients[], PlayerBase player)
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_ResultSetHealth[MAXIMUM_RESULTS]
float m_ResultSetQuantity[MAXIMUM_RESULTS]
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
override void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
bool m_ResultUseSoftSkills[MAXIMUM_RESULTS]
int m_ResultReplacesIngredient[MAXIMUM_RESULTS]
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsHealth[MAXIMUM_RESULTS]
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultInheritsColor[MAXIMUM_RESULTS]
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS]
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS]
void InsertIngredient(int index, string ingredient, DayZPlayerConstants uid=DayZPlayerConstants.CMD_ACTIONFB_CRAFTING)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()