Retrieves the name of an
Object.
<code cpp>
VAULTSCRIPT std::string (*GetName)(vaultmp::ID);
native GetName(ID, name{});
</code>
vaultmp::ID - the ID of the
Object
name (PAWN only) - an array large enough to hold at least
MAX_PLAYER_NAME characters. Note that
Objects which are not
Players can have longer names.
The C++ version returns a std::string containing the name. The PAWN version has no return value.
<code cpp>
std::string name;
name = GetName(object);
</code>
<code c>
new name{MAX_PLAYER_NAME};
GetName(player, name);
</code>