Skip to content

SetActorNameplateFor

The label one viewer alone reads over an actor.

Like SetPlayerNameplateFor for an actor: viewer reads text over it instead of its own label (SetActorNameplate), which everyone else keeps reading; "" gives the viewer the actor’s own label again. At most 48 characters. Gone when the actor is destroyed.

SetActorNameplateFor(viewer, id, text)
Parameter Type
viewer number the player who reads the label
id number the actor
text string the label; "" = the actor’s own again

boolean - false for anything but a living person actor, or a viewer not connected

-- the player has met the innkeeper: from now on they read his name
SetActorNameplateFor(pid, innkeeper, "Innkeeper Mathew")

GetActorNameplateFor · SetActorNameplate · SetPlayerNameplateFor · the NPC actors group of the index