I was making a script to make an automatic gun but the script i have makes it semi-automatic
this is my script
var bullitPrefab:Transform;
function Update ()
{
if(Input.GetButtonDown("Fire1"))
{
var bullit = Instantiate(bullitPrefab,
GameObject.Find("spawnpoint 1").transform.position,
Quaternion.identity);
bullit.rigidbody.AddForce(transform.forward * 3500);
}
}
thanks