OnPlayerGiveDamage using NPCs
#1

Hi,
i just played around with the new NPC plugin called "RNPC" by mauze and wanted to code a little zombie script.
But when I tested shooting an NPC using OnPlayerGiveDamage i recognized, that it's not called when the target is a NPC.. so I don't know if it's on purpose, but I think it would make much more things possible or easier using NPCs
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage
Quote:
Originally Posted by Wiki
This callback is called when a player gives damage to another player.
NPCs don't lose health...so they don't get any damage.
Reply
#3

As i know, NPC's are just walking around, you cant punch them / stop them from walking in anyway.
Reply
#4

It's not even HARD to create your own damage 'system' for NPCs. You just need to know how to read the data from the weapon.dat file in the San Andreas directory.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)