Summary
In this chapter, you learned how to use RPCs to allow the server and the clients to execute logic on one another. We also learned how enumerations work in Unreal Engine 4 by using the UENUM
macro and how to use bi-directional circular array indexing, which helps you iterate an array in both directions and loops around when you go beyond its index limits.
With the activity of this chapter complete, you'll have a basic playable game where players can shoot each other and switch weapons, but there is still more we can add to make it even more interesting.
In the next chapter, we'll learn where the instances of the most common gameplay framework classes exist in multiplayer, as well as learn about the Player State and Game State classes, which we haven't covered yet. We'll also cover some new concepts in the game mode that are used in multiplayer matches, as well as some useful general-purpose, built-in functionality.