Page 1 of 1

Changing an entity health.

Posted: Wed May 15, 2013 2:47 pm
by ficolas
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.

Re: Changing an entity health.

Posted: Wed May 15, 2013 3:29 pm
by FreeER
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