Page 1 of 1

Damage player ignoring armor

Posted: Sun May 20, 2018 3:00 pm
by Villfuk02
Is there a way to damage a player, while ignoring all armor and possibly even shields?

Re: Damage player ignoring armor

Posted: Sat May 26, 2018 9:05 pm
by eradicator
Just directly change health?
LuaEntity.health = LuaEntity.health - Damage

Re: Damage player ignoring armor

Posted: Mon May 28, 2018 4:10 am
by Villfuk02
Yep, I also figured that out. But i wanted to know if there was a better way. Thanks

Re: Damage player ignoring armor

Posted: Mon May 28, 2018 1:40 pm
by eradicator
Villfuk02 wrote:Yep, I also figured that out. But i wanted to know if there was a better way. Thanks
Doesn't get much better than one line of code :P, and your description pretty much says "LuaEntity.damage()" doesn't work for me. So, NP ;)