marcintr1994
New member
Hi, I’ve got a problem with Melee Attack. I’m using the Ultimate Inventory System demo and I’d like to add an extra attack. I added a script that reuses the data from the default Melee Attack (from each sword), doubles the attack stats, and adds a special effect, sound, and cooldown, while using the same animation as the basic attack. Everything works fine on the player — both the basic and the stronger extra attack — but the problem starts with enemies: the enemy runs up to the player and then just stands there without attacking. So something in the logic must have broken. I’ll attach the scripts. How else could I handle this? Is it okay for me to modify MeleeAttack.cs and EnemyCharacter.cs?