Retrieves the name of an
Object.
Code cpp:
VAULTSCRIPT vaultmp::String (*GetName)(vaultmp::ID);
native GetName(ID, name{});
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
vaultmp::String containing the name. The PAWN version has no return value.
Code cpp:
vaultmp::String name;
name = GetName(object);
Code c:
new name{MAX_PLAYER_NAME};
GetName(player, name);