Skip to content

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.

SetActorNameplate(id, text)
Parameter Type
id number the actor
text string | nil the label; nil = the name again

boolean - false for anything but an actor

SetActorNameplate(captain, "[WATCH] " .. GetEntityName(captain))

GetActorNameplate · SetActorColor · SetPlayerNameplate · the NPC actors group of the index