29 return item.IsEmpty();
41 string color = mainItem.ConfigGetString(
"color");
42 string className =
"WaterproofBag_" + color;
44 EntityAI result1 = action_data.
m_Player.SpawnEntityOnGroundRaycastDispersed(className);
45 EntityAI result2 = action_data.
m_Player.SpawnEntityOnGroundRaycastDispersed(
"Rope");
47 if (!result1 || !result2)
50 MiscGameplayFunctions.TransferItemProperties(mainItem, result1);
51 MiscGameplayFunctions.TransferItemProperties(mainItem, result2);
void CreateConditionComponents()
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
ActionDeCraftDrysackBagCB ActionContinuousBaseCB ActionDeCraftDrysackBag()
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
void OnFinishProgressServer(ActionData action_data)
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
const float DEFAULT_DECRAFT
DayZPlayerConstants
defined in C++