3 override void CreateActionComponent()
29 return item.IsEmpty();
39 EntityAI mainItem = action_data.m_MainItem;
41 string color = mainItem.ConfigGetString(
"color");
42 string className =
"WaterproofBag_" + color;
44 EntityAI result1 = action_data.m_Player.SpawnEntityOnGroundPos(className, action_data.m_Player.GetPosition());
45 EntityAI result2 = action_data.m_Player.SpawnEntityOnGroundPos(
"Rope", action_data.m_Player.GetPosition());
47 if (!result1 || !result2)
50 MiscGameplayFunctions.TransferItemProperties(mainItem, result1);
51 MiscGameplayFunctions.TransferItemProperties(mainItem, result2);
53 action_data.m_MainItem.Delete();