GetName(object, int)

Retrieves the name of an object.

string GetName(
    object oObject,
    int bOriginalName = FALSE
);

Parameters

oObject

Object who's name is sought.

bOriginalName

If set to TRUE any new name specified via SetName() is ignored and the original object's name is returned instead. (Default: FALSE)


Description

Returns the first and last name of oObject. In the case of creatures, returns first and last names together as single concatenated string.



Remarks

GetName() returns the name of modules and areas (pre-1.25 it returned a null string).


Known Bugs

Returns "" for stores.


Version

1.67

See Also

functions: SetName
categories: Get Data from Object Functions


 author: Kristian Markon, editor: Lilac Soul, Mistress, additional contributor(s): Simon Damberger, Lilac Soul