Download

Execute "Remote only" code on authority client of listen server

Hi all! Quick question, thanks to anyone who can point me towards a direction :smiley:

Say I have a custom event (no replication) called “Hello World” on my player pawn.
-This function checks Switch Has Authority, and if Remote: will print “Hello World”.

I have another custom event called “Execute” (Multicast) which calls “Hello World”.

If I run this on Dedi server with 2 clients I get:
“Client 1: Hello World”
“Client 2: Hello World”
(no “Server: Hello World” because server gets “Authority on the switch”)

If I run this on Listen I get:
“Client 2: Hello World”

Client 1 does not print because he gets “Authority” on Switch Has Authority.

What I want: Both Dedi Server and Listen Server results in:
“Client 1: Hello World”
“Client 2: Hello World”

Anyone know a neat workaround to have a function that will execute “Hello World” on every client in a Dedi, and on every connected client + Listen client in Listen? :slight_smile:

multicast it without the authority switch?

client 1 is the server on the 2nd case so you need it to go to that aswell. Unless I’ve misunderstood which is what usually happens :slight_smile:

Do you want every client to see:

“Client 1: Hello World”
“Client 2: Hello World”

printed on their screen or just the server?