Verse Library verse

01 Snippet

Manages AI spawners and objective tracking for a stronghold game mode.

extracted-snippets/documentation/en-us/uefn/stronghold-03-add-verse-script-to-devices-in-unreal-editor-for-fortnite/01-snippet.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/stronghold-03-add-verse-script-to-devices-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/stronghold-03-add-verse-script-to-devices-in-unreal-editor-for-fortnite.md
using { /Fortnite.com/AI }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Simulation }
using { /Verse.org/Verse }
# The Stronghold is a game mode in which the goal is for players to eliminate all hostile enemies at a heavily guarded Stronghold
# The Stronghold Game Manager Verse device is used to manage, monitor, and control the AIs at the Stronghold
stronghold_game_manager := class(creative_device):
# Device reference to guard spawner device to keep track of for eliminations
@editable
GuardsInitialSpawners:[]guard_spawner_device := array{}
# Device reference to guard spawner device to keep track of for eliminations for multiplayer scaling
@editable
GuardsInitialSpawnersAdditional:[]guard_spawner_device := array{}
# Device reference to reinforcement guard spawner device to trigger when one of the Stronghold guards is alerted
@editable
GuardsReinforcementSpawners:[]guard_spawner_device := array{}
# Device reference to reinforcement guard spawner device to trigger when one of the Stronghold guards is alerted for multiplayer scaling
@editable
GuardsReinforcementSpawnersAdditional:[]guard_spawner_device := array{}
# Device reference to display and track objectives
@editable
ObjectiveTracker:tracker_device := tracker_device{}
# Device reference to display reinforcement in-game message
@editable

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in