17 {
18 if (!
GetGame().IsDedicatedServer() && item)
19 m_Text =
"#attach " + item.GetDisplayName();
20
22 if (targetEntity)
23 {
24 if (
CanAttachToProxy(player, targetEntity, item, target.GetComponentIndex()))
25 return true;
26 }
27
29 if (targetParentEntity)
30 {
31 if (
CanAttachToProxy(player, targetParentEntity, item, target.GetComponentIndex()))
32 return true;
33 }
34
35 return false;
36 }
bool CanAttachToProxy(PlayerBase player, EntityAI targetEntity, ItemBase item, int componentIndex=-1)