31 if (!
GetGame().IsDedicatedServer())
36 targetEntity =
EntityAI.Cast(target.GetParent());
40 targetEntity =
EntityAI.Cast(target.GetObject());
47 if (super.SetupAction(player, target, item, action_data, extra_data))
51 action_data_a.m_AttSlot = il.GetSlot();
64 if (targetEntity && item)
66 return targetEntity.GetInventory() && targetEntity.GetInventory().CanAddAttachment(item) && !targetEntity.CanUseConstruction());
93 if (action_data.m_Target.IsProxy())
95 entity =
EntityAI.Cast(action_data.m_Target.GetParent());
99 entity =
EntityAI.Cast(action_data.m_Target.GetObject());
102 if (entity && action_data.m_MainItem)
104 action_data.m_Player.PredictiveTakeEntityToTargetAttachmentEx(entity, action_data.m_MainItem, action_data.m_AttSlot);