Creating a attack script that works on different objects

Atokrad
20 Feb 2021, 05:23

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?


jmnevil54
20 Feb 2021, 07:20

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)


Atokrad
20 Feb 2021, 07:57

Ok thank you.