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

GetConnection

Returns the assigned connection slot of the given ID (which must reflect a Player).

[top]Declaration

Code cpp:
VAULTSCRIPT VAULTSPACE UCount (*VAULTAPI(GetConnection))(VAULTSPACE ID) VAULTCPP(noexcept);
Code c:
native GetConnection(ID);

[top]Parameters

ID - the ID of the Player

[top]Return value

Returns a UCount, which is a value within the range [0, GetMaximumPlayers - 1]. If the given ID does not reflect a Player, UINT_MAX is returned.