Verse Library verse

03 Valid Players Are Ones That Are Active And Not Spe

Defines classes managing race start positions, vehicle spawners, lobby timers, and round configuration for a Creative race mode.

extracted-snippets/documentation/en-us/uefn/speedway-race-with-verse-persistence-template/03-valid-players-are-ones-that-are-active-and-not-spe.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/speedway-race-with-verse-persistence-template
# Local doc:  epic-docs/documentation/en-us/uefn/speedway-race-with-verse-persistence-template.md
# Section:    Valid players are ones that are active and not spectating.
# This file handles the logic for the pregame lobby and the cinematics that play at the beginning of a race.
# It controls the length of the starting lineup based on the number of players, and plays an intro for each
# player by displaying their stats.
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Fortnite.com/FortPlayerUtilities }
using { /Verse.org/Native }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { PlayerLeaderboard }
# A starting position on the race track.
start_position<public> := class<concrete>:
# The car players drive during the race.
@editable
Car:vehicle_spawner_pickup_truck_device = vehicle_spawner_pickup_truck_device{}
# Prevents players from driving out of their starting positions.
@editable
Barrier:barrier_device = barrier_device{}
# A Verse-authored creative device that can be placed in a level
starting_game_sequence := class(creative_device):
# The amount of time to wait in the pregame lobby.
@editable
PreGameTime:float = 15.0
# The total number of rounds in the race.
@editable
TotalRounds:type {Rounds:int where 1 <= Rounds} = 3
# Counts down to the start of the race during the pregame lobby.

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