Difference between revisions of "GetEntityName"
From Nomad DB
SpeckBomber (talk | contribs) |
|||
Line 1: | Line 1: | ||
+ | {{Page_WD2}} | ||
Retrieves the name from an [[Entity|entity]]. | Retrieves the name from an [[Entity|entity]]. | ||
Latest revision as of 19:44, 27 October 2020
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"