Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Damage detection

Go to solution Solved by Finnis,


Version of Files 40k



I was kinda curios, how to detect top damages - I have had created boss and he's giving coins when it's killed and other players in the map get also a small amount of coins and I want to do something like giving coins to best three players with greatest damage. Is it possible in some easy way? 


Link to post

1 answer to this question

Recommended Posts

  • 1
  • VIP
  • Solution

You could insert into a vector the damage taken and the player instance or player id, doesn't really matter. 

After the boss is killed you can just loop through the vector and see who did the most damage.


Hope it helped.

Link to post
This topic is now closed to further replies.

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.