OnPlayerTakeDamage callback
#1

Hey there,

Simple question, does the callback OnPlayerTakeDamage get called whenver SetPlayerHealth is used to lower a player's health or only upon weapon damage?

Thank you in advance.


EDIT: I just tested it myself and for those who are interested, it does not get called when you lower someone's health using SetPlayerHealth.
Reply
#2

It's called whenever player loses health in server(fall, weapon damage, punch, fire and etc). But no, it isn't called when you use SetPlayerHealth function.
Reply
#3

Yeah, as I said in my last edit, I have tested it on my own and figured it out by myself.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)