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

Executing functions over the network

In this section, you will learn how to properly call functions over the network and what the word “authority” really means for the UE multiplayer system. In particular, you will get some insight into which entity should execute a function when it has been called: a client or the server.

Spawning Actors

It is time to start adding pickups at runtime. You are going to achieve this by adding a spawn area Blueprint to the level.

This Blueprint should be able to do the following:

  • Choose a random position every time it spawns something
  • Spawn random pickups at predefined intervals
  • And obviously... behave correctly over the network!

Let’s get started.

Choosing a random spawn position

Let’s start by creating the Blueprint and setting its parameters:

  1. Create a new Actor Blueprint and call it BP_Spawner.
  2. Add a Box Collision component, name it SpawnArea, and make it the Scene Root...
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