Est GetEscort

From EventScripts Community Encyclopedia
Syntax: est_GetEscort <variable> <identifier>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • Returns how many hostages the player escorting

Parameters

  • variable - The variable to store the returned value in
  • identifier - The identifier must be a players:
    • userid
    • steamid
    • username - Partial or full name

Example


event hostage_stops_following
{
  es_xset myvar 0
  es est_GetEscort myvar event_var(userid)
  if(event_var(es_userteam) == 3) do
  {
    if(server_var(myvar) != 0) do
    {
      es_tell event_var(userid) A hostage stopped following you, but server_var(myvar) hostages are still following you
    }
    else do
    {
      es_tell event_var(userid) None of the hostages are following you
    }
  }
}

Notes

  • None

See Also

blog comments powered by Disqus