Quantcast
Channel: Questions in topic: "melee"
Viewing all articles
Browse latest Browse all 201

Melee system not working

$
0
0
not to long ago i asked how i would i go along making a melee system and i came up with a very basic one here it is: var Damage = 20; var stab : AnimationClip; function OnCollisionEnter(Attack : Collision) { if(Input.GetButtonDown("Fire1")) if (Attack.gameObject.tag == "Enemy") Damage -= 20; animation.Play("Slash"); } and when i press fire1 it does not do anything and i dont understand why it is not working please help

Viewing all articles
Browse latest Browse all 201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>