Member-only story

Multicast events in UE4.22

BlueBubbleBee
5 min readNov 17, 2019

--

Implementing an escape zone, complete the level and notify all players connected

In the previous tutorials related to multiplayer, I implemented interactive actors across networking in a Co-op mini game with 2 players connected.
In this tutorial we are including a way to win a level using a fantastic resource, multicast events.

You can follow along this tutorial downloading the project files from here:

https://github.com/bluebubblebee/UE4_CoopPuzzleGame.git

Multicast events are designed to be called from the server and executed on all connected clients.

Clients can also call these events but they will only be executed locally and not y any other client or the server.

To represent multicast events, we will create a new Actor, an Escape Zone.

The basic code is very similar to an interactive actor, it has a main root of USceneComponent type, and a collision UBoxComponent to detect any actor overlapping the zone.

The collision also implements a dynamic event to handle when an actor overlaps:

--

--

BlueBubbleBee
BlueBubbleBee

Written by BlueBubbleBee

I am Bee, an indie developer making Kitori Academy a cosy life sim where you take the role of a wizard apprentice and have a cat as a companion!

No responses yet