Est gethealth

From EventScripts Community Encyclopedia
Syntax: est_gethealth <return var> <userid>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

Find out how much health the user has remaining.

Parameters

  • return var
  • userid

Example


event player_say
{
  if (event_var(text) == myhealth) do
  {
    es_xset health 0
    es est_gethealth health event_var(userid)
    es_msg Everyone look! event_var(es_username) has server_var(health) health remaining!
  }
}


See Also

blog comments powered by Disqus