5 m_Name =
"#STR_CraftTorch0";
69 Torch torch = Torch.Cast(results[0]);
71 int quantity = rag.GetQuantity();
75 torch.SetTorchDecraftResult(ingredients[1].
GetType());
79 player.ServerTakeEntityToTargetAttachment(torch, rag);
81 else if (!
GetGame().IsMultiplayer())
84 player.PredictiveTakeEntityToTargetAttachmentEx(torch, rag, slotID);
89 torch.CraftingInit(quantity);
eBleedingSourceType GetType()
override void Do(ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight)
override bool CanDo(ItemBase ingredients[], PlayerBase player)
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS]
int m_ResultToInventory[MAXIMUM_RESULTS]
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS]
float m_ResultSetHealth[MAXIMUM_RESULTS]
float m_ResultSetQuantity[MAXIMUM_RESULTS]
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS]
void AddResult(string item)
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()