0044 Unity (Weapon Script)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,986
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 27, 2009

learn the unity game engine

Category:

People & Blogs

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • thnks!!

see all

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.

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