From 1946835ee87bdd20c586f6bb79c422da1cad4685 Mon Sep 17 00:00:00 2001 From: Zughy <63455151+Zughy@users.noreply.github.com> Date: Mon, 11 Jan 2021 17:03:46 +0000 Subject: [PATCH] Document how to make nametags background disappear on players' head (#10783) Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com> --- doc/lua_api.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ba4d6312c..4ef67261a 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -6938,7 +6938,11 @@ Player properties need to be saved manually. -- in mods. nametag = "", - -- By default empty, for players their name is shown if empty + -- The name to display on the head of the object. By default empty. + -- If the object is a player, a nil or empty nametag is replaced by the player's name. + -- For all other objects, a nil or empty string removes the nametag. + -- To hide a nametag, set its color alpha to zero. That will disable it entirely. + nametag_color = , -- Sets color of nametag