I am making an attack mechanic in my game, preferably a single script, that can work with different objects, maybe a function or command that can be called on depending on the weapon. I have created a sword that gives the player an attack attribute and a monster for testing but I can't figure out how to make the sword work with attacking the monster, any help?
I'll report the spam.
I would check out ThePixie's zombie apocalypse tutorial on github. https://github.com/ThePix/quest/wiki/The-Zombie-Apocalypse-(on-the-web-version)