Hi,
When someone calls Mutate MyMutatorName in the console, it calls the function Mutate on the server. I want the server to trigger a mutator function call on each client. Inside that function, the client must trigger a function call on the server, with a struct as parameter. So basically, there are 3 functions, mutate(...), ClientFunction(), and ServerFunction(param).
So for example, the following execution scenario could happen:
1. Client 1 types Mutate MyMutatorName
2. Server calls Mutate(...)
3. In the Mutate function, the server triggers a mutator function call on each client.
4. ClientFunction called on client 1, and triggers a server function call.
5. ClientFunction called on client 2, and triggers a server function call.
6. ServerFunction("Ack from 1") called on the server
7. ClientFunction called on client 3, and triggers a server function call.
8. ServerFunction("Ack from 2") called on the server
9. ServerFunction("Ack from 3") called on the server
What is the simplest solution to "route" these function calls? What is the syntax required?
Thanks
When someone calls Mutate MyMutatorName in the console, it calls the function Mutate on the server. I want the server to trigger a mutator function call on each client. Inside that function, the client must trigger a function call on the server, with a struct as parameter. So basically, there are 3 functions, mutate(...), ClientFunction(), and ServerFunction(param).
So for example, the following execution scenario could happen:
1. Client 1 types Mutate MyMutatorName
2. Server calls Mutate(...)
3. In the Mutate function, the server triggers a mutator function call on each client.
4. ClientFunction called on client 1, and triggers a server function call.
5. ClientFunction called on client 2, and triggers a server function call.
6. ServerFunction("Ack from 1") called on the server
7. ClientFunction called on client 3, and triggers a server function call.
8. ServerFunction("Ack from 2") called on the server
9. ServerFunction("Ack from 3") called on the server
What is the simplest solution to "route" these function calls? What is the syntax required?
Thanks
Last edited: