i need help with scripting reload an the fire rate.
any help would be Nice ![]()
My current “fire script” is
var projectile : Rigidbody;
var speed = 20;
function Update () {
if ( Input.GetButton ("Fire1")) {
clone = Instantiate(projectile, transform.position, transform.rotation);
clone.velocity = transform.TransformDirection( Vector3 (0, 0, speed));
Destroy (clone.gameObject, 3);
}}
If your problem is solved accept an answer. - Read this page : http://answers.unity3d.com/page/newuser.html - Please watch : http://video.unity3d.com/video/7720450/tutorials-using-unity-answers
– ExTheSeaCan a high-karma user please accept the answer because the OP seems to have abandoned UA before doing so. Regards, ExTheSea
– ExTheSea