ScriptableObject attack?

Greetings, just wondered if it is okay to use Scriptable Object here, seems like it is very similar, and presonally, more comfortable.

You can, but I’ve mentioned this in another post; you are going to need an asset for each attack, and if you want to change any value for the player or an npc you will have to create a new asset. ScriptableObject assets are shared, and as soon as you change the value for this npc, everyone else that uses that same asset will get the change. So, if you want to tweak values per npc or for the player, you would need an asset for each change you want to make.

@Brian_Trotter mentioned having the weapon as a scriptable object, and then have the attacks as normal classes - as we have them now. Search the forum, you should find it

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms