Top Comments
All Comments (6)
-
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.
thnks!!
SaigoMember 2 years ago 4