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.
Enabled | Enable or Disable the node. Disabled nodes cannot be executed |
Only Other Players | Doesn't get executed for player who executes the Player Broadcaster node |
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. |
Team Index | Outputs team index of the player who executed the Player Broadcaster. |
Player Name | Outputs player name index of the player who executed the Player Broadcaster. |
On Signal Received | When signal is received, executes the link & passes the value |
Player Index, Team Index and Player Name outputs require Multiplayer Info node to exist in the scene.
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 & object targets.
Any Node that outputs values, vectors or object targets can be used to send that information through a broadcast signal. Simply execute the Broadcaster with the value output of the source Node and it will include that data in the broadcast signal.
For example:
A Number Node's output is linked to a Broadcaster's Execute input.
A Broadcast Listener set to the same Broadcast Signal has its On Signal Received output linked to the value input of a Text Node.
Now every time the Number Node it will send its value through the Broadcast Signal, updating the value in the Text Node