fade nametags while sneaking
This commit is contained in:
parent
d662e7e30b
commit
6086e888b1
|
@ -127,11 +127,11 @@ minetest.register_globalstep(
|
|||
local model=model_name and models[model_name]
|
||||
local controls=player:get_player_control()
|
||||
|
||||
--[[ if controls.sneak then --- setting makes_footstep_sound apperantly does nothing :(
|
||||
player:set_properties({makes_footstep_sound = false})
|
||||
if controls.sneak then
|
||||
player:set_nametag_attributes({color = {a = 30, r = 255, g = 255, b = 255}})
|
||||
else
|
||||
player:set_properties({makes_footstep_sound = true})
|
||||
end--]]
|
||||
player:set_nametag_attributes({color = {a = 255, r = 255, g = 255, b = 255}})
|
||||
end
|
||||
|
||||
if model and not player_attached[name] then
|
||||
local walking=false
|
||||
|
|
Loading…
Reference in New Issue