If i create a trigger collider located at the sword of a character that has a damage script upon it will it work? is this generaly good to do? every tutorial i show only shows how to deal damage when the player is close enough but this looks a bit dull imo. How did games like skyrim do this? and how did games like god of war? does anyone have any clue?
It is better to each enemy receive a feedback when they are being attacked, the same way the player “feels” when he is attacked, now the enemy would see which weapon was attacked with and act according with that, not sure how other games do it, but as object oriented programming tells, enemy is an object, weapon is an object, and a lose of health action is being landed on enemy so enemy should handle it. Good luck.