I’m attempting to create a projectile weapon with a real-world projectile and server side hit-detection. I’ve looked through some of the example code but I want to know what the best example of something like this, in C++, would be. I want to learn the best practices for networking and the canonical method of doing networking for UE4.
Hi, first of all read docs:
Take a look on the samples:
then look on the code of the ShooterGame or UnrealTournament(you can get it from the github), there is implementation of the projectiles.
Regards
Pierdek
If you want to learn Basic networking, have a look at the links from Pierdek and maybe also have a look at my Networking Stream Recap on Youtube:
Don't know if this helps you though.The best place to learn how to make a replicated c++ weapon would be looking into the ShooterGame, but you shouldn’t do this before you nearly fully understand networking in general.