Added client nameplates

This commit is contained in:
2020-05-02 16:36:51 -04:00
parent 948b379f9d
commit ee233c52f0
3 changed files with 9 additions and 2 deletions

View File

@ -50,6 +50,8 @@ func update_entity(entity_id : String, pos : Vector2, type : String):
display_error("Trying to load entity of type: " + type + ", but failed.")
if entity:
entity.position = pos
if entity.has_method("set_username"):
entity.set_username(entity_id)
func delete_entity(entity_id : String, type : String):
var entity : Node2D = get_node_or_null( str(type + "-" + entity_id))