The Player Broadcast Listener listens to signals from Player Broadcaster.
Player Broadcast Listener works the same way as normal Broadcast Listener node. The only difference is that the signals will be sent to all players currently playing the game.
A typical use for Player Broadcasting is ensuring that an event (e.g. destroying or spawning an object, opening a door) is synchronized for all players in the See Others multiplayer mode
Note: Unlike normal Broadcaster, Player Broadcaster shouldn't be used to send objects. Only Numbers, Vectors and Rotations are supported.
Enabled | Enable or Disable the node. Disabled nodes cannot be executed |
Listen To | Identifies the Broadcast Signal the Broadcast Listener is listening to |
Channel | Channel of the listener |
Player Index | Outputs the player index of the player who executed the Player Broadcaster. |
Party Index | Outputs the party index of the player who executed the Player Broadcaster. |
Player Name | Outputs the name of the player who executed the Player Broadcaster, as an index. |
On Signal Received | Executes the outgoing link when a signal is received and passes along any attached value, if one was included in the broadcast |
The Broadcast Signal connects Broadcasters to Broadcast Listeners.
When a Broadcaster is executed every Broadcast Listener that is listening to the same Broadcast Signal will execute its functions.
The name of Broadcasters & Broadcast Listeners will automatically be set to the name of the Broadcast Signal used unless it is manually overwritten.
Channels allow you to use the same Broadcast Signal for multiple purposes.
When a Broadcaster is executed only Broadcast Listeners set to the same signal & channel will be executed.
The channel of both Broadcasters & Broadcast Listeners can be changed during runtime allowing a single node to be used for multiple purposes.
Broadcast signals can be used to send information such as values, vectors & rotations.
Any node that outputs numbers or vectors can be used to send that information through a player broadcast signal. Simply execute the Broadcaster with the value output of the source node and it will include that data in the broadcast signal. The Player broadcaster can also send an object but this is not recommended: objects passed with broadcasting can't be synchronized accurately.
For example: