Overview
Allows clients to communicate with each other via a local tcp server. Clients can have tags added to them using the setting Networking.Tags
. Tags can be used in combination with the /ub bct
command to broadcast a command to all characters of a specific tag. See below for examples.
Commands
/ub bc [millisecondDelay] <command>
Broadcasts a command to all open clients, with optional
millisecondDelay
inbetween eachExamples:
/ub bc 5000 /say hello
- Runs “/say hello” on every client, with a 5000ms delay between each/ub bc /say hello
- Runs “/say hello” on every client, with no delay
/ub bct <teamslist> [millisecondDelay] <command>
Broadcasts a command to all clients with the specified comma-separated tags (no spaces!), with optional
millisecondDelay
inbetween each. Tags are managed with the Networking.Tags setting.Examples:
/ub bct one,two 5000 /say hello
- Runs “/say hello” on every client taggedone
ortwo
, with a 5000ms delay between each/ub bct three /say hello
- Runs “/say hello” on every client taggedthree
, with no delay/ub bct "some tag","another tag" /say hello
- Runs “/say hello” on every client taggedsome tag
oranother tag
, with no delay
/ub netclients <tag>
Lists all available clients on the network, optionally limited to the specified tag.
Examples:
/ub netclients
- Show all clients on the ub network/ub netclients one
- Show all clients on the ub network with tagone
Settings
Networking.ServerHost
Default Value: 127.0.0.1
Networking server host
Networking.ServerPort
Default Value: 42163
Networking server port
Networking.Tags
Default Value: System.Collections.ObjectModel.ObservableCollection`1[System.String]
Character identifier tags. You can use these with the /ub bct command to limit which characters are broadcast to.
Expression Methods
netclients
Gets a list of network clients, optionally filtered by tag
Parameters:
- Param #0: tag (string) - Optional network tag to filter by
Returns: List - Returns a list of network client data, optionally filtered by tag
Examples:
netclients[]
- returns a list of all network clientsnetclients[test]
- returns a list of all network clients with the tagtest