3 override void CreateActionComponent()
21 override void CreateConditionComponents()
27 override bool HasTarget()
37 override void OnFinishProgressServer(
ActionData action_data )
41 CargoBase cargo = item.GetInventory().GetCargo();
46 float dmg = item.GetHealth01(
"",
"");
51 paper.SetHealth01(
"",
"", dmg - 0.25 );
54 for(
int i = cargo.GetItemCount() - 1; i >= 0 ; i--)
56 EntityAI cargo_item = cargo.GetItem(i);
58 GameInventory.SetGroundPosByOwner(action_data.m_Player,cargo_item,il_dst);
59 cargo_item.GetInventory().GetCurrentInventoryLocation(il_src);
61 if(
GetGame().IsDedicatedServer())
62 action_data.m_Player.ServerTakeToDst( il_src, il_dst );
64 action_data.m_Player.LocalTakeToDst( il_src, il_dst );