Added: 2 years ago
From: cannedmushrooms
Views: 3,930
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (6)

Sign In or Sign Up now to post a comment!
  • here´s the script so far :) just add it on the character controller and put the bullet in the variable :)

    var Char_Bullet : Transform;

    function Update () { if(Input.GetButtonDown("Fire1"­)) { var bullet = Instantiate(Char_Bullet,GameOb­ject.Find("Gun_Spawn").transfo­rm.position,Quaternion.identit­y);  bullet.rigidbody.AddForce(tran­sform.forward * 2000); }

    }

  • At 0:25 when i double click, nothing pops up, rendering me unable to change/modify/add any script/s. Any help? :\

  • Is this a full step by step game tutorial in c#?

  • i have your script, but the bullet doesn't go forward. it transform to the left. So i change "..transform.forward.".. to..".. transform.right.." and the bullet goes forward. Please help me!! I use unity 3.3 pro.

  • Comment removed

  • thnks!!

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more