Ok I tried that and I get the plain inine with the barrel, I tried to rotate it and scale it but it will not work... What am I doing wrong?
Sorry it's in DarkGDK, but the functions are the same as DBPro and you guys answer quicker than the C++ forums..
lastlimb = the next available limb in the model...
Also I tried to texture the limd, but the model mesh got the texture, testuring before the makemesh does not work either... any help would be appreciated.. I have not tried to build my own limbs before so am new to it..
if(dbObjectExist(c_TempObjectID))
dbDeleteObject(c_TempObjectID);
dbMakeObjectPlain(c_TempObjectID,25,25);
if(dbImageExist(m_cWeapon->getMuzzleFlashImage()))
dbTextureObject(c_TempObjectID,m_cWeapon->getMuzzleFlashImage());
dbMakeMeshFromObject(c_TempObjectID+1,c_TempObjectID);
dbAddLimb(m_nHudModel,lastlimb,c_TempObjectID+1);
dbLinkLimb(m_nHudModel,m_nHudflashlimb,lastlimb);
m_nHudFlashImageLimb = lastlimb;
dbDeleteMesh(c_TempObjectID+1);
dbDeleteObject(c_TempObjectID);
float size = m_cWeapon->getMuzzleFlashSize();
if(size <= 0)
size = 100.0;
dbScaleLimb(m_nHudModel,m_nHudFlashImageLimb,size,size,size);
dbRotateLimb(m_nHudModel,m_nHudFlashImageLimb,90,90,90);
dbShowLimb(m_nHudModel,m_nHudFlashImageLimb);