Posts: 410
Threads: 88
Joined: Oct 2008
Reputation:
0
I was wondering in which cases OnPlayerTakeDamage is being called, perhaps you guys can help me get more information on that.
I know that it is being called whenever takes fall damage or gets shot at.
Posts: 1,861
Threads: 103
Joined: Sep 2011
Reputation:
0
As those do inflict damage on the player, I do believe it's called in these situations.
Posts: 1,767
Threads: 124
Joined: Mar 2010
Quote:
Originally Posted by Maxips2
What about nearby vehicle explosions? stepping into fire? grenade explosion? and so on...
I would test that IG but I don't really have the option to do it ATM.
|
Debug player health in OnPlayerTakeDamage and check your console is it get called or not. Probably, as callback says, it's getting called everytime when player gets a damage.
Posts: 1,113
Threads: 127
Joined: Jul 2008
Reputation:
0
well the way i think it works is: when the health of a player changed to something less that it was. The OnPlayerTakeDamage is called.