I made sure that any current weapon the player holds is defined as the global ENTITY lightEnt.

Considering that, this is what I came up with:
Code:
if(current_weapon == 2)//gun
				{
					if(lightEnt)
					{
						VECTOR _p;
						vec_for_bone (_p, lightEnt, 176);
						vec_set (flashlight.x, _p.x); 
						flashlight.pan = camera.pan;
						flashlight.tilt = camera.tilt;
						sc_light_update(flashlight);
					}
				}


I set the flashlight.. light to this particular vertex point I created:



It does work, however the light constantly flickers: