Player.setHealth

From Runsafe
Revision as of 02:58, 4 June 2013 by imported>Kruithne (Created page with "== Details == ''Arguments'' * '''playerName''' (String) - The name of the player whose health is to be modified [Required] * '''health''' (Integer) - The value of health to se...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Details

Arguments

  • playerName (String) - The name of the player whose health is to be modified [Required]
  • health (Integer) - The value of health to set. [Required]

Returns

  • Nothing.

Usage

engine.player.setHealth('Kruithne', 20);

Notes

  • Will kill the player if their health is set to 0.
  • Setting their health above the maximum has no effect other than healing them to full.
  • Nothing happens if the player is offline.