GetEntityName

From Nomad DB
Revision as of 18:57, 14 April 2020 by Cobra (talk | contribs)

This function returns the name of the specified entity.

Syntax

GetEntityName(entityId)
  • entityId (string): ID of the target entity.
  • Returns (string): Name of the specified entity.

Example

local entityName = GetEntityName(GetLocalPlayerEntityId())
print(entityName) -- returns "player.MainCharacter.PawnPlayer.Aiden2"

Related Pages