sábado, 28 de outubro de 2023

UEFN Verse: Guard Spawner device

The Guard Spawner device can spawn a group of enemies to attack players. We can define the type of guard, the quantity and the frequency.

Our game will have 5 Guard Spawner devices. Each device will spawn two guards. The number of enabled Guard Spawner devices corresponds to the current round.

Let's add a Guard Spawner device and make the changes. Then we will make 4 copies of this Guard Spawner.

Go to the Content Drawer and the Fortnite > Devices folder. Search by guard. Drag the Guard Spawner device and drop it onto the level in the grid line above the line that has Capture Areas 4 and 5.


The image below shows the guard types available on the Guard Spawner device:


In the Details tab, choose one of the guard types and uncheck the Enabled at Game Start property: 



In our game, each Guard Spawner device will only spawn 2 guards. The guards will be part of the Team Index 2 so they will consider the player as an opponent  because the player is on the Team Index 1.

Uncheck the Allow Infinite Spawn property. Set the value 2 to Total Spawn Limit. In Guard Team Index put Team Index 2. Uncheck the Show Spawn Radius property to improve the level's visualization during editing. 


We will reduce the visibility of the guards to allow the player to capture some areas without the guards noticing.

In Visibility Range put the value 20. Change Visibility Range Restriction to Always.


Make 4 copies of the Guard Spawner device and place them on the same grid line as shown at the top of this image:


Modify the Guard Type on each of the Guard Spawners to have a variety of enemies in the game.

In the next article we will see how Guard Spawners devices will be enabled by Verse code according to the current round. If you want to test, you can manually enable some Guard Spawners by checking the Enabled at Game Start property.


Table of Contents Verse