Jump to content
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.

damh0503

Newbie
  • Content Count

    15
  • Joined

  • Last visited

  • Days Won

    1

damh0503 last won the day on October 23 2016

damh0503 had the most liked content!

Community Reputation

5 Neutral

About damh0503

  • Rank
    Newbie
  • Birthday 04/20/1989

Profile Information

  • Gender
    Male
  • Location:
    Japan

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Any error message on console? Remove target script on player and test it.
  2. Hi, I wanna remove the function that goes over, what code should I remove/change on FPSController.cs? https://youtu.be/CGDkDKmpcJA
  3. 1. Add this code on Ienumerator ApplyDamage in BulletScript.cs. if (hit.transform.tag != friendlyTag) { //Addthis if (hit.collider.gameObject.GetComponent<HealthScript>()) { hit.collider.gameObject.GetComponent<HealthScript>().PlayerDamage(System.Convert.ToInt32(damage)); } // hit.collider.SendMessage(damageMethodName, damage, SendMessageOptions.DontRequireReceiver); } 2. Add this code on IEnumerator Go() in ExplosionScript.cs if (hit.GetComponent<Collider>().gameObject.GetComponent<HealthScript>()) { hit.GetComponent<Collider>().gameObject.GetComponent<HealthScript>().PlayerDamage(System.Convert.ToInt32(damage)); } 3. Replace this in TargetScript.cs public void ApplyDamage(float h) { if (healthScriptHolder.GetComponent<HealthScript>()) { healthScriptHolder.GetComponent<HealthScript>().PlayerDamage(System.Convert.ToInt32(h)); } healthScriptHolder.SendMessage("Damage", h, SendMessageOptions.DontRequireReceiver); } 4. Change Player layer to default, Click this object only. 5. Change Damage Method Name to ApplyDamage, and Hit Effect Tag to Enemy on TSA bullet prefabs. Also on TSA Explosion Prefabs 6. Change AI prefab Tag to Enemy, which have collider component. And Apply Prefab. Noooww it's done. + You need to change TSA HealthScript.cs name, cuz it has same name as HealthScript.cs on FPS kit.
  4. Sad that smd importer only support 3DS max 9 ~ 2012....
×
×
  • Create New...