NPC Spawner

Overview

Warning - Banner Icon - Fortnite
This device is currently in Beta!

This device and its settings can be changed and or removed at anytime with no notice.

The NPC Spawner is a Device in Fortnite: Creative that is only useable if editing with Unreal Editor for Fortnite, added in Update v28.10.

See full documentation for it here. AI and NPCs

All Settings

All Settings[]

All default values have been Bolded.

All Options
Option Value Description
Spawn Count 1, 2 - 20 Sets the number of AIs this spawner can have active at any time. When the spawner activates, it will produce one AI at a time.
Spawn Through Walls True, False Determines whether this A.I. must spawn within line of sight of the Spawn or if they can spawn behind obstructing walls.
Spawn Character at Game Start True, False Determines whether the spawner is already enabled when the game starts to spawn NPC Characters, set it to false would turn it as an Animated Character in-game.
NPC Behavior Script override None, NPC Behavior Script1 Replaces the NPC Behavior script from the Character Definition.
NPC Character Definition CharacterDefinition_Default, New NPC Definition2 The NPC Definition that will be used to spawn the NPC.
Additional NPC Character Modifiers Cosmetic Modifier, Health Modifier, Team Modifier, UI Modifier The extra list of modifiers that will be used to spawn the NPC.
Allow Infinite Spawns True, False Determines whether the spawner has a total spawn limit or not.
Total Spawn Limit 1, 2 - 100 Sets the maximum number of AIs this spawner can produce during its lifetime.
Spawn On Timer True, False Determines whether the AI is spawned on the Spawn Timer countdown, or spawn on events
Spawn Timer 3.0 s, 0.0 s - 5.0 min Sets the minimum time between spawning AIs. Instant(0) will spawn the quickest possible but is capped by performance limit.
Show Spawn Radius True, False Determines if we need to show the spawn radius or not.
Spawn Radius 100.0 cm (1.0 m) - 5000.0 cm (50.0 m) The maximum distance from the device that an AI can spawn.
Despawn AIs When Disabled True, False When the device is disabled, this determines whether the already spawned AIs remain or are despawned.

1 - A NPC Behavior Script can be created within the Verse Explorer tab then by creating a new Verse File and selecting either NPC Behavior or NPC Behavior Basic. See More

2 - A NPC Definition can be created by right-clicking within your projects contents file in the Content Browser and under Artificial Intelligence, select NPC Character Definition. See More

All Modifier Options

All Modifier Options[]

All default values have been Bolded.

Cosmetic Modifier
Option Value
Character Look Fortnite Character , Custom Character
Character Cosmetic Jonesy, Select a Cosmetic
Character Movement Default Movement, Animation Preset, Retarget From Fortnite Character
Effect Modifier
Option Value
Visual Effect None, Select a Niagara System
Visual Effect Socket None, Select a Socket Position
Sound Effect None, Select a Sound Wave
Sound Effect Socket None, Select a Socket Position
Health Modifier
Option Value
Is Vulnerable True, False
Starting Health 100, 1 - 10,000
Max Health 100, 1 - 10,000
Starting Shield 0, 1 - 10,000
Max Shield 0, 1 - 10,000
Movement Modifier
Option Value
Walk Speed 1.5 m/s, Select a value
Run Speed 6.0 m/s, Select a value
Acceleration 20.5 m/s², Select a value
Deceleration 2050.0 cm/s², Select a value
Team Modifier
Option Value
Team Option Index, Wildlife and Creature, Neutral
Team Index 1 - 100
UI Modifier
Option Value
Show Health Bar True, False
Display Name Default Cosmetic's Name - [Enter Display Name]

Functions and Events

Functions and Events[]

Functions
Option Description
Enable When Receiving From Enables the device.
Disable When Receiving From Disables the device.
Spawn When Receiving From Spawns AI from this device
Despawn When Receiving From Despawns any existing AIs belonging to this device
Reset Total Spawn Count When Receiving From Resets the count for the Total Spawn Limit
Events
Option Description
On Spawned Send Event To Sends an event to linked device when this device spawns an AI.
On Eliminated Send Event To Sends an event to linked device when an AI from this device is eliminated.

npc_spawner_device class

npc_spawner_device class[]

using { /Fortnite.com/Devices }

Inheritance Hierarchy
Option Description
creative_object Base class for creative devices and props.
creative_device_base Base class for creative_device.
Data
Option Type
SpawnedEvent listenable(agent)
EliminatedEvent listenable(device_ai_interaction_result)
Functions
Option Parameters Description
Enable Enables this device. Characters will start to spawn.
Disable Disables this device. Characters will despawn if Despawn AIs When Disabled is set.
Reset Resets the spawn count allowing spawning of a new batch of characters.
Spawn Tries to spawn a character.
DespawnAll Instigator:?agent Despawns all characters. If set, Instigator will be considered as the eliminator of those characters.