Make An NPC Lose Health Without CNPC?
#3

Use wups' OnPlayerShootPlayer include and add an health array to store the "virtual health" for every NPC. Just set it to 100 on npc spawn.
In the shootplayer callback decrease the health, if it is 0 or lower, kill the npc

So it is possible
Reply


Messages In This Thread
Make An NPC Lose Health Without CNPC? - by The_Gangstas - 11.12.2010, 13:45
Re: Make An NPC Lose Health Without CNPC? - by Jay_ - 11.12.2010, 13:47
Re: Make An NPC Lose Health Without CNPC? - by Mauzen - 11.12.2010, 14:09
Re: Make An NPC Lose Health Without CNPC? - by The_Gangstas - 11.12.2010, 14:23

Forum Jump:


Users browsing this thread: 1 Guest(s)