Percentage reward for each player upon killing an enemy

Hello fellow developers! I have a doubt about players receiving coins uppon killing a NPC. I’d like players to receive coins as a percentage based on how much damage they’ve dealt to the enemy. Any ideas?

1 Like

You can track damage dealt by each player in a table, and then give percentage rewards based on that when the NPC dies

1 Like

That’s actually a good solution for my problem, thanks!

1 Like