• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to make NPC loose hp?

whitevo

Feeling good, thats what I do.
Joined
Jan 2, 2015
Messages
3,454
Solutions
1
Reaction score
627
Location
Estonia
Eeeh? Am I missing something?

print(npc:getHealth())
npc:addHealth(-1) -- doTargetCombatHealth(0, npc, PHYSICAL, 1, 1, 1) //doesn't work either
print(npc:getHealth())

console:
500
500

currently i created reverseHP for NPC.
So it visually looks like his taking damage and hp goes down, but there is no damage numbers.
So yeah, is there some kind of flag or something I'm missing?
 
Last edited:
Back
Top