I think this was removed on 0.3, if so, why? and plz move this to modding interface requests.
Also gethealth isnt there :S
I know there is the die method but I want to change the health, not to kill.
Changing an entity health.
Re: Changing an entity health.
the entity.health value is no longer unchangeable. As proof type this into the console
Code: Select all
if game.player.character.health then game.player.print(game.player.character.health) game.player.character.health = 200 game.player.print(game.player.character.health) end
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me
Or drop into #factorio on irc.esper.net