set_name
Changes this object’s name using the native object-name rules. Player names must also be available, allowed by the bad-name list, and valid player names.
Function
Synopsis
object:set_name( name )
Arguments
string name- The new UTF-8 name. It may contain valid styled-text markup.
Returns
No values.
Examples
local object = mux.world.object(ctx.object)
object:set_name("New Name")
Errors
mux.unavailable.checkingduring@lua/check.mux.arg.invalidif the name is missing, malformed, invalid for the object type, forbidden, or already used by another player.mux.object.invalidif theObjecthandle is stale.mux.object.unavailableif the object is being destroyed.