Lua API
On this page
UBNetModule
Inherits from
Access to UBNet. This allows you to talk to clients on the same computer / ubnet instance.
Fields:
IsConnected boolean
read only
Wether you are currently connected to the UBNet server.
Constructors:
New() :
Methods:
Dispose() : nil
Returns:nil
GetClients(filterFunction: fun(UBNetClientInfo) : nil ) : UBNetClientInfo[]
Get a list of all connected ubnet clients that match the specified function filter. This does not include yourself.
Name | Type | Default | Summary |
filterFunction | fun(UBNetClientInfo) : nil |
Returns:UBNetClientInfo[]
GetClients(tag: string) : UBNetClientInfo[]
Get a list of all connected ubnet clients that have the specified tag. This does not include yourself.
Name | Type | Default | Summary |
tag | string |
Returns:UBNetClientInfo[]
GetClients(type: ClientType) : UBNetClientInfo[]
Get a list of all connected ubnet clients of the specified type. This does not include yourself.
Name | Type | Default | Summary |
type | ClientType |
Returns:UBNetClientInfo[]