Page 1 of 1

multiHitNPC Help

Posted: Fri Jan 28, 2022 1:24 am
by Paul Flemister II
Hello everyone, so I've been wondering how create a code about how many hitpoints will the NPC take by a certain HARM TYPE.

Like how many hitpoints will the NPC takes from HARM_TYPE_PROJECTILE_USED or HARM_TYPE_JUMP separately instead being the same?

I greatly apologize for brothering you... I'm still a novice at LunaLua Coding...

Re: multiHitNPC Help

Posted: Fri Jan 28, 2022 7:12 am
by deice
the base game already has a good example of how you'd go about doing this. i recommend looking at the "onNPCHarm" event in "data/scripts/npcs/AI/chucks.lua".