Reader small image

You're reading from  Multiplayer Game Development with Unreal Engine 5

Product typeBook
Published inOct 2023
PublisherPackt
ISBN-139781803232874
Edition1st Edition
Right arrow
Author (1)
Marco Secchi
Marco Secchi
author image
Marco Secchi

Marco Secchi is a passionate game programming teacher located in Milan, Italy. In the past, he has been a freelance programmer focusing on game and application development, however he is now currently a lecturer and Lead Game Advisor at NABA (Nuova Accademia di Belle Arti). Marco continues to hone his programming skills in the R&D department at NABA, while also working on personal projects too, involving game development and cultural heritage.
Read more about Marco Secchi

Right arrow

Understanding what an RPC is

An RPC is a function that can be called locally but is executed on a different machine – for instance, a server computer may call a function on a client computer that will command it to spawn a visual effect or a sound somewhere in the level. Another useful application of an RPC is the ability to send messages bi-directionally between a server and a client over a network connection.

There are three types of RPCs available in Unreal Engine:

  • Server: The function will be called by an object on the client PC but executed only on the server version of that same object. The client must own the object calling the method (if you need to, please check Chapter 5, Managing Actors in a Multiplayer Environment, for a refresher about owning an Actor).
  • Client: The function will be called on the server by an object but executed only on the client version that owns the object calling it.
  • NetMulticast: The function can be called on the server by...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Multiplayer Game Development with Unreal Engine 5
Published in: Oct 2023Publisher: PacktISBN-13: 9781803232874

Author (1)

author image
Marco Secchi

Marco Secchi is a passionate game programming teacher located in Milan, Italy. In the past, he has been a freelance programmer focusing on game and application development, however he is now currently a lecturer and Lead Game Advisor at NABA (Nuova Accademia di Belle Arti). Marco continues to hone his programming skills in the R&D department at NABA, while also working on personal projects too, involving game development and cultural heritage.
Read more about Marco Secchi