OnPlayerGiveDamage; would it detect damage done to NPC's?
#1

Hello all,

I want to make a zombie script. But the zombies need to be able to die.
I thought about using OnPlayerGiveDamage to 'kill' the zombies, using virtual health.

The question is, would OnPlayerGiveDamage detect if a player is shooting on an NPC?
Reply
#2

Nope, neither this nor OnPlayerTakeDamage will work for NPCs. Though it will be called if a NPC damages a real player, but for the other way round youll need to use something like wups OnPlayerShootPlayer include.
Reply
#3

Okay, thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)