Help
Remember Me?
Home
Forum
Download
Scripting docs
Wiki
Main
Special Pages
Books
Recent Changes
Blogs
Wiki
Main
GetConnection
This site has been archived and made available for preservation purposes. No edits can be made.
If this is your first visit, be sure to check out the
FAQ
by clicking the link above. You may have to
register
before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
article
discussion
source
history
Viewing source for:
GetConnection
Returns the assigned connection slot of the given [wiki]ID[/wiki] (which must reflect a [wiki]Player[/wiki]). [h="2"] Declaration [/h] [highlight=cpp] VAULTSCRIPT VAULTSPACE UCount (*VAULTAPI(GetConnection))(VAULTSPACE ID) VAULTCPP(noexcept); [/highlight] [highlight=c] native GetConnection(ID); [/highlight] [h="2"] Parameters [/h] [b][wiki="ID"]ID[/wiki][/b] - the ID of the [wiki]Player[/wiki] [h="2"] Return value [/h] Returns a [wiki="UCount"]UCount[/wiki], which is a value within the range [0, [wiki]GetMaximumPlayers[/wiki] - 1]. If the given [wiki]ID[/wiki] does not reflect a [wiki]Player[/wiki], UINT_MAX is returned. [category]VaultMP interface[/category] [category]Scripting functions[/category] [category]Game functions[/category]