Damage player ignoring armor
Damage player ignoring armor
Is there a way to damage a player, while ignoring all armor and possibly even shields?
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Damage player ignoring armor
Just directly change health?
LuaEntity.health = LuaEntity.health - Damage
LuaEntity.health = LuaEntity.health - Damage
Re: Damage player ignoring armor
Yep, I also figured that out. But i wanted to know if there was a better way. Thanks
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Damage player ignoring armor
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 ;)Villfuk02 wrote:Yep, I also figured that out. But i wanted to know if there was a better way. Thanks