GetEntityName

From Nomad DB
Revision as of 20:44, 27 October 2020 by SpeckBomber (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Retrieves the name from an 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