#how do i check if npc is damaged

28 messages · Page 1 of 1 (latest)

tulip crypt
#

For future reference, do not "name drop" games, most people will most likely have no idea wtf you are talking about.

#

that said you can keep track of the health of all your enemies by having a table of said enemies

tulip crypt
#

and then hooking to all of the enemies Humanoids HealthChanged event

unreal flame
#

like is there a way to if health has changed

tulip crypt
#

yeah but you want to have like a demoralization system

unreal flame
#

aight thanks mate

tulip crypt
#

so you need all your enemies health

unreal flame
tulip crypt
#

so you'll need to make a bit of math, get the average health of all enemies

#

and what not

#

and if the average health of all enemies passes a threshold

#

make em surrender

#

unless it's per enemy

#

not all enemies

unreal flame
#

ye not all enemies

tulip crypt
#

if it's per enemy then it's simpler

unreal flame
#

civilians included

tulip crypt
#

make it surrender

#

that's pretty much it

unreal flame
#

aight

tulip crypt
unreal flame
#

thanks bav

tulip crypt
#

noo worries

unreal flame
#

anyways