Bumping olldddd topic. I had this figured out long time ago, but now I lost the code.
I know I figured it out by looking at this piece of code: (From the HLSDK)
Code:
inline void SetAttachment( edict_t *pEntity, int attachment )
{
if ( pEntity )
{
pev->skin = ENTINDEX(pEntity);
pev->body = attachment;
pev->aiment = pEntity;
pev->movetype = MOVETYPE_FOLLOW;
}
}
But converting this into pawn, it doesn't work. It always attaches at the center of the model.
Anybody have any idea's on how todo this?
__________________