Unreal Editor for Fortnite (UEFN) and Fortnite Creative allow you to test your multiplayer experiences by spawning up to 98 test players into your level. You no longer need to manage multiple accounts and devices when testing alone, or assemble other Fortnite users to test incremental design changes—you can simply launch a session with the number of test players required for your multiplayer experience!
Test players behave exactly like idle players: they can be damaged, assigned to a team, spawn on Player Spawners and be instigators for devices. You can set the number of test players to be as high as the max player limit in your project's Island Settings.
Adding Test Players to Your Level in UEFN
Adding test players to your experience is simple:
Launch UEFN and open a new or existing project.
In the Outliner, find and select IslandSettings.
In the Details panel, search for "debug" or scroll to the Debug section.
Check the box next to Debug. Notice that Test Players on Start option becomes available to edit.
Choose between the following:
Fill spawns test players up to the Max Players value in your settings.
Custom enables the Number of Test Players field and allows you to set the desired amount, up to the Max Players island setting.
None spawns no test players.
Adding Test Players to Your Level in Fortnite Creative
To spawn test players in Fortnite Creative:
Launch your session and load into your island.
Open the main menu and choose Island Settings.
In the left panel, select Debug to enable it.
Expand the Test Players added at Game Start and modify the Test Players on Start field.
Using Test Players in Verse
An agent
is a Verse type that can potentially move around and interact with the environment, like a player, a guard, a raptor, etc. If you want to use test players to test player functionality, you can use the GetParticipants()
function, which will return a list of all the players and test players.
If your code uses GetPlayers()
instead of GetParticipants()
, you will not be able to test functionality using test players, because GetPlayers()
will only return a list of players.
Example: Granting Items to Test Players with Verse
The following code demonstrates the use of GetParticipants()
in Verse, using a Trigger device and an Item Granter device to grant test players an item when the trigger is activated.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
teleporter_test := class(creative_device):
@editable
Trigger:trigger_device = trigger_device{}
@editable
ItemGranter:item_granter_device = item_granter_device{}
When you run this Verse code, you can see that GetParticipants()
is fully compatible with Creative devices and should be used whenever you test functionality with test players.