Posts: 303
Threads: 20
Joined: Jul 2016
Reputation:
0
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.
Posts: 1,192
Threads: 10
Joined: Dec 2017
Reputation:
0
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.