SetName(object, string)

Set the name of an object.

void SetName(
    object oObject
    string sNewName    
);

Parameters

oObject

The object whose name is to be changed.

sNewName

The new name to give oObject.


Description

Set the name of an object.



Remarks

NOTE: This will not work on player objects.

Setting an object's name to "" will make the object revert back to using the name it had originally had before any SetName() calls were made on the object.


Known Bugs


Version

1.67

See Also

functions:  GetName
categories:  Get Data from Object Functions


author: Mistress