Skip to content

function setPlayerHealth (client-side)

Available since version: 0.3.0

Set a player's current health (clamped to [0,max]).

Declaration

void setPlayerHealth(int player_id, int health)

Parameters

  • int player_id: Target player id.
  • int health: New health value.