39 {
41
43 int attachments_count = target_entity.GetInventory().AttachmentCount();
44 for ( int j = 0; j < attachments_count; j++ )
45 {
46
47 attachment = target_entity.GetInventory().GetAttachmentFromIndex( j );
48 if ( attachment )
49 break;
50 }
51
52 if ( attachment )
53 {
54 action_data.m_Player.PredictiveTakeEntityToHands(attachment );
55 }
56 }