Yes the inner ring does rotate.
But it looks like only distance and id are required?
But it looks like only distance and id are required?
Code:
/////// hst
if (out_ring_status == 2)
{
if (GetAttachmentStatus(hst_base_att) == NULL)
{
if (dist(sm_pnt_glob[7], att_glob) < 0.2)
//sprintf(oapiDebugString(), "anim %5.5f", dist);
{
const char *id = v->GetAttachmentId(hAtt);
if (strncmp(id, "SCM", 3)); // attachment point not compatible
else
{
int atchk = 0;
DWORD natt = v->AttachmentCount(true);
for (DWORD k = 0; k < natt; k++)
{
ATTACHMENTHANDLE atth = v->GetAttachmentHandle(true, k);
if (!v->GetAttachmentStatus(atth) == NULL) atchk = 1;
}
if (atchk == 0)
{
AttachChild(hVessel, hst_base_att, hAtt);
anot_status = 1;
return;
}
}
}
}
}