I don't think that you need the view = camera code in there because the flags = SHOW already defines the gun as being seen by the camera. I might be wrong on that though. How have you set the gun entity up? I would try using the pos_x and pos_y code lines to move the entity around. I tried out using a defined entity instead of a view entity for one of the models in my game before.
Try creating the entity this way:
ENTITY* gun =
{
type = "pistol.mdl";
layer = 2;
x = 34; // play around with these values. These values determine how much the entity is put ahead, above, below, right
or left of the view. To put the gun ahead of the view use a + x value. Opposite for behind the view
-y = to the left. +y = to the right. -z = below. +z = above.
y = 0;
z = 0;
flags = SHOW;
}
Hope this helps. I found this under the entities section in the manual. I also knew most of the code from previous experience.
If you want to find the page in the manual for more detail, go to the search tab in the gamestudio manual and type in "entities" and choose the 4th result ( the title is entities and there should not be any pictures of a minotaur on the page)
-fanged scorpion