This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

DeadMou67

Newbie
  • Content count

    6
  • Joined

  • Last visited

Community Reputation

0 Neutral

About DeadMou67

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location:
    I cant tell you bro :)
  • Interests
    Game Development

Recent Profile Visitors

19 profile views
  1. don't be so rude, ya know he is good
  2. fennixx i need two barrelled sci fi shotgun with textures if you can pls
  3. this script is for aiden's tutorial
  4. using UnityEngine; using System.Collections; public class GunScript : MonoBehaviour { public Camera fpsCam; public GameObject hitPar; public int damage = 30; public int range = 10000; public Animation am; public AnimationClip shoot; void Update(){ if (Input.GetMouseButton (0)) { fireShot (); } } public void fireShot(){ if (!am.IsPlaying (shoot.name)) { am.CrossFade (shoot.name); RaycastHit hit; Ray ray = fpsCam.ScreenPointToRay (new Vector3 (Screen.width / 2, Screen.height / 2, 0)); if (Physics.Raycast (ray, out hit, range)) { if (hit.transform.tag == "Player") { hit.transform.GetComponent<PhotonView> ().RPC ("applyDamage", PhotonTargets.AllBuffered, damage); } GameObject particleClone; particleClone = PhotonNetwork.Instantiate (hitPar.name, hit.point, Quaternion.LookRotation (hit.normal), 0) as GameObject; Destroy (particleClone, 2); Debug.Log (hit.transform.name); } } } } Can someone help me to change this script to shoot like machine gun pls?
  5. Hey guys I am new here and I want to know how to add sound to reload animation like clipOut clipIn and Deploy? I hope you can help me thank you!