Verse Library verse

02 Deactivate All Towers

Defines a device class for tower mechanics, managing player interactions, timers, and billboards.

extracted-snippets/documentation/en-us/fortnite/squid-game-multiplayer-skill-checks-in-unreal-editor-for-fortnite/02-deactivate-all-towers.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/squid-game-multiplayer-skill-checks-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/squid-game-multiplayer-skill-checks-in-unreal-editor-for-fortnite.md
# Section:    Deactivate all towers
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# Tower logic - a part of multiplayer QTEs game
qte_tower_device := class(creative_device):
# Button at the top of the tower - starts multiplayer QTEs game for all towers registered in the game's device
@editable
StartGameButton : button_device = button_device{}
# Button near the tower, allowing the player to teleport to the top floor
@editable
TeleportToTowerButton : button_device = button_device{}
# Used to display game status
@editable
GameInProgressBillboard : billboard_device = billboard_device{}
# With Verse we only need one Skilled Interaction Device per tower, because
# when handling QTE success and failure events, we can affect different floors in the code
@editable
SkilledInteraction : skilled_interaction_device = skilled_interaction_device{}
# With Verse we only need one Timer Device per tower
# Used to delay start of skilled interaction after falling one floor
@editable
NextFloorTimerDevice : timer_device = timer_device{}
# Player Counter Device - gives us the number of players in the tower
@editable
PlayerCounter : player_counter_device = player_counter_device{}
# Where to move players after the game
@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