Es entsetname

From EventScripts Community Encyclopedia


Overview

Syntax: es_entsetname <userid> <name>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: es_xentsetname

Description

Names an entity that the specified userid is looking at. (Doesn't change player name)

Parameters

  • userid - Userid of player looking at the entity you want named
  • name - Name that you want to give the entity


Examples

event player_hurt
{
  es_entsetname event_var(attacker) bill
  // Names the player entity he shot "bill"  That does not change his CS:S name it renames the entity for later use
  es_fire event_var(attacker) bill Kill
  // Deletes the player from the server.  Doesn't slay, kills it.  Might crash server..
}


Notes

  • Name an entity to run things specifically on that entity


See also


blog comments powered by Disqus