Hi, i have a gun that is shooting bullets like a machine gun. But it is WAY to rapid. I tried putting waits in many places, heres is the orig code.
Code:
function move_bullet()
{
set(my,FLAG2);
	while(my)
	{
		c_move(my,vector(10,0,0),nullvector,IGNORE_PASSABLE | IGNORE_FLAG2);
		wait(1);
	}
}

function standard_shoot()
{
	vec_for_vertex(bullet_pos1,ship,1231);
	bullet1 = ent_create("bullet.mdl",vector(bullet_pos1.x,bullet_pos1.y,bullet_pos1.z),move_bullet);


	bullet1.pan = ship.pan;

}
action player_action()
{
while(1)
{
if(key_space){standard_shoot();}
wait(1);
}
}


Right know it shoot like 300 bullets right when you hit the space bar but i would like them to be spaced out like 1 or 2 seconds apart, could any1 help me out? Thanks.