/ discord
: WATCH THE DEDICATED SERVER TUTORIAL FIRST IF YOU DO NOT HAVE A DEDICATED SERVER FOR TESTING!
• Unreal Engine Multiplayer: "Setting u...
GetLifetimeReplicatedProps function
https://paste.ofcode.org/AjDk6CFtJMER...
In this video you will see an example of variable replication and its effectiveness at preventing cheating on a dedicated server. We will create a basic health variable for the player and a function to lower their health. Then we will launch a dedicated server and join it with cheat engine open. In cheat engine we will change our clients health and lock it to 100 even after we lower our health so our player is invincible.Then we setup our health to be replicated and controlled only by the server to prevent our client from cheating. Remember, NEVER trust the client. After we are setup on the server, you will see an attempt to cheat our health variable again without success. We can change our variables value on the client, but our server has a different value that our client uses, so next time we take damage our health gets reset back to its correct value!