Hello,
I am trying to use a Muzzle flash effect for my vehicle, but it is drawing to the wrong attachment. Here is my code: (nRole is the role of the vehicle, and nType Is the weapon fire mode of primary fire or secondary fire.) The role weapon muzzle attachment index holder is verified right because it is used in calculations to determine the pose parameters for the gun based on the player who is in that weapon's role. It is playing the right muzzle flash it is just using a wrong attachment. CEffectData data; data.m_nEntIndex = entindex(); data.m_nAttachmentIndex = m_iRoleMuzzleAttachments[nRole]; data.m_flScale = 1.0f; DispatchEffect(m_strRoleWeaponMuzzle[nRole][nType], data ); BaseClass::DoMuzzleFlash(); _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

