GetEntityName

From Nomad DB
Revision as of 18:55, 14 April 2020 by Cobra (talk | contribs) (Created page with "This function returns the name of the specified entity. == Syntax == <pre> GetEntityName(entityId) </pre> * '''entityId''': ID of the target entity. * '''Returns''': Name of...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns the name of the specified entity.

Syntax

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

Example

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

Related Pages