765 {
766 TypeAttachmentGroupsDataHolder holder = ent.GetTypeAttachmentGroupInfoHolder();
768 if (!dataObj)
769 return false;
770
772 if (ent.MemoryPointExists(selectionName))
773 {
774 vector
position = ent.GetMemoryPointPos(selectionName);
776 vector posPlayer =
g_Game.GetPlayer().GetPosition();
777 float heightDiff = posPlayer[1] -
position[1];
778 float negativeTolerance = -range / 5;
779 posPlayer[1] = 0;
781
782 return heightDiff >= negativeTolerance && (Math.AbsFloat(heightDiff) <= range) && vector.Distance(posPlayer,
position) <= range;
783 }
784
785 return true;
786 }
string m_SelectionName
in imageset format
TypeAttachmentGroupData GetAttGroupDataByClassName(string groupName)
Returns single 'GUIInventoryAttachmentsProps' subclass data based on class name.