# This is a comment. It explains the code. # We are making a simple futuristic room. using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } # This is our main script. # It runs when the game starts. # We use a prop_spawner_base_device placed in the editor. # Drag one into your level and assign it to this property. futuristic_room_manager := class(creative_device): # This is a prop_spawner_base_device reference. # Assign your Prop Spawner device here in the editor. @editable RoomSpawner : prop_spawner_base_device = prop_spawner_base_device{} # OnBegin runs automatically when the game starts. OnBegin() : void = # We call SpawnObject on the device. # This spawns the prop that is already configured # on the Prop Spawner device in the editor. RoomSpawner.SpawnObject() # We print a message. # This helps us know it worked. Print("Room placed! Enjoy your futuristic base!")