Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.
Revision as of 13:20, 11 January 2012 by fandomwiki>Fuzzyhed (Created page with "{| border=2 cellpadding=3 cellspacing=0 style="margin: 0 0 1em 1em; border-collapse: collapse;" |- |style="background:#000430; font-size:150%;" colspan="3"|'''Actor.health''' |- ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Actor.health
This Property represents the health of a given Actor, however it should be noted that it is not possible to directly kill an actor by setting health to 0, but only possible to make him invincible by setting it to a high value.
Returns
Health as an integer.
local chosenActor = API.getPlayerActor()-- Use the modding API to get the player Actor
chosenActor.health = chosenActor.health + 10000 -- Give him lots of health.