Problem...
Code:
case 5001:
int m_iBalls;
m_iBalls = gEngfuncs.pEventAPI->EV_FindModelIndex( "sprites/rhotglow.spr" );
gEngfuncs.pEfxAPI->R_TempSprite( (float *)&entity->attachment[0], (float *)&entity->attachment[1], 0.1, m_iBalls, kRenderGlow, kRenderFxNoDissipation, 255.0, 1.0, FTENT_FADEOUT );
break;
I want to make the sprite move from my attachment[0] to attachment[1]. I guess I'm not doing this right because whenever I shoot now it makes the sprite somewhere flying up into the sky. I can't even figure out a deffinate patter as to where the ball spawns and where it flies to. Any idea what I should use for the first two parameters to make it go from one point to the other?