Command Profile
ENT_SETNAME
CS2
Sets the target name of the given entity(s). Arguments: <new entity name> <{entity_name} / {class_name} / {entity_index} / {no argument = pick what player is looking at}>
Syntax
ent_setname
Description
Sets the target name of the given entity(s). Arguments: <new entity name> <{entity_name} / {class_name} / {entity_index} / {no argument = pick what player is looking at}>
How To Use ent_setname
- Enable the developer console in Counter-Strike settings.
- Open the console with the tilde key (
~). - Enter
ent_setname, replacing bracketed arguments with the value you want, then press Enter.
This command is listed as compatible with Counter-Strike 2.
Syntax And Arguments
ent_setname