Modular Replication

is there a way to replicate across players easier then creating 2 custom events like the way im currently doing

image

id like to create something where i can just plug in a function and send it to be ran on the server for everyone, is this possible or is is insecure or something

Unfortunately, there is no way to replicate variables and events across players in a simpler way than creating custom events. The system is designed with the server having authority, which means that communication must go through the server to properly update all clients.

The different event types are used in different scenarios to optimize the use of game resources. As you work more within the server/client system, it will become more apparent how these different event types are used.

It is worth noting that using C++ can make it easier to replicate variables and events, but if you want to avoid using C++, it is important to understand the basics of the server/client system and the different event types.

It’s possible that someone else might have a more elegant blueprint solution for this. However I think it’s still important to have a good understanding of the underlying systems to be able to create a more elegant solution.