Character.setNameTag
Sets the name tag display value for the character
Kind: Function
Environments: Game
Game
character:setNameTag(
name,
color,
requiresLoS,
renderDistance,
fadeDistance
)
Availability: Client only
Parameters:
| Name | Type | Description |
|---|---|---|
character |
Character | The character. |
name |
string | The new name tag text value. |
color (optional) |
Color | The color of the name. (defaults to white) |
requiresLoS (optional) |
boolean | Whether broken line of sight will hide the name tag. (Defaults to false) |
renderDistance (optional) |
number | Max distance the name tag will render in. (Defaults to 10000) |
fadeDistance (optional) |
number | Distance where fade out will start. (Defaults to 9500) |