# This is a simplified representation of what the device does
struct GridEntity {
Prop: PropAsset # The 3D model
Name: string # "MyCoolTree"
Size: vector2 # 1x1, 2x2
}
struct UnlockPack {
Entities: list<GridEntity> # List of allowed props
IsUnlocked: bool # True if player earned it
}
class GridEntity_Manager {
# The list of all possible props
Available_Props: list<GridEntity>
# The list of packs
Packs: list<UnlockPack>
# Function called when player opens build menu
function Get_Buildable_Props(Player: Player) -> list<GridEntity>:
Result: list<GridEntity> = []
for Pack in Packs:
if Pack.IsUnlocked:
# Add all props in this pack to the result
for Entity in Pack.Entities:
Result.Add(Entity)
Verse Library
verse
01 Fragment
Manages a progression system that unlocks specific buildable props for players based on their current item pack status.
verse-library/setting-up-the-lego-grid-entity-manager-in-unreal-editor-for-fortnite/01-fragment.verse
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.