SetActorNameplate
The label over an actor’s body on every screen.
By default the label is the actor’s name (CreateActor); this replaces it - a rank, a faction, a title. nil or ""
puts the name back. At most 48 characters. An actor created without a name wears no label until it gets one here. The
label keeps its color (SetActorColor) and hides behind walls like a player’s.
Syntax
Section titled “Syntax”SetActorNameplate(id, text)| Parameter | Type | |
|---|---|---|
id |
number | the actor |
text |
string | nil | the label; nil = the name again |
Returns
Section titled “Returns”boolean - false for anything but an actor
Example
Section titled “Example”SetActorNameplate(captain, "[WATCH] " .. GetEntityName(captain))See also
Section titled “See also”GetActorNameplate · SetActorColor · SetPlayerNameplate · the NPC actors group of the index
