Is executing a "Run on Owning Client" event from the Server secure?

Flash Trance
Fri, 12 Apr 2019 21:16:33 +0000
Multiplayer & Networking

I’m trying to wrap my head around how certain calls work together. I’m concerned about how and where I’m running certain sections of code because I want it to be secure. For example, if I ran something like this:

…would the “Very Important Variable” be liable to alteration by the player on the client machine? Or is it safe because that event was run on the server? I notice that when I add a Switch Has Authority after the Client event (that is being run by the Server) like this:

…the variable is not set, though I’m not sure if that necessarily means the code is running on the client itself. Is this safe? If not, what’s the recommended way of setting an important variable for a specific client such that they cannot alter it?

2 posts - 1 participant