OnPlayerTakeDamage/OnPlayerGiveDamage
#1

Hi,

I'am using this both callback's.

I want to ask:

Which callback will be called first, when somebody shoot to somebody?

If i set player health, and then in other callback getplayerhealth, i get that health which i set or that health, what player have
Reply
#2

First will be called OnPlayerGiveDamage
Reply
#3

You test it?
Reply
#4

Depends, sometimes OnPlayerGiveDamage() won't be called at all but it will always call first if it is called. I'll be honest with you however, OnPlayerTakeDamage() is completely useless when it comes to bullet damage a proper damage system should only use OnPlayerGiveDamage() the new lag comp is unreliable so you should have a skin hit system which uses OnPlayerGiveDamage() and issues the damage. Of course you will still need OnPlayerTakeDamage() to detect fall damage etc.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)