How can I detect
#1

How can I detect if player was shot in head two times to set his hp to 0. I need example for my script and my death system.
Reply
#2

Try OnPlayerTakeDamage and OnPlayerGiveDamage callbacks, both of them have a 'bodypart' param that you can check for headshots and then just use SetPlayerHealth to 0.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)