Difference between revisions of "GetEntityName"

From Nomad DB
Line 5: Line 5:
 
GetEntityName(entityId)
 
GetEntityName(entityId)
 
</syntaxhighlight>
 
</syntaxhighlight>
* '''entityId''' (string): ID of the target entity.
+
* '''entityId''' (string): [[EntityId|ID]] of the target entity
* '''Returns''' (string): Name of the specified entity.
+
* '''Returns''' (string): Name of the specified entity
  
 
== Example ==
 
== Example ==

Revision as of 19:04, 14 April 2020

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