This site has been archived and made available for preservation purposes. No edits can be made.

GetName

Retrieves the name of an Object.

[top]Declaration

Code cpp:
VAULTSCRIPT VAULTSPACE cRawString (*VAULTAPI(GetName))(VAULTSPACE ID) VAULTCPP(noexcept);
Code c:
native GetName(ID, name{});

[top]Parameters

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

[top]Return value

The C++ version returns a cRawString. The PAWN version has no return value.