# This is a simple Verse script for the portal # It makes the portal appear when a player is close using { /Fortnite.com/Devices } using { /Verse.org/Sim } # We define a device called MysticPortal # This device holds our portal logic actor class MysticPortal is Interactor { # This is a variable for the portal mesh # A variable is a box that holds data PortalMesh : StaticMeshComponent = nil # This function runs when the game starts OnBegin() { # We find the mesh in the level # We get it from the World PortalMesh = World::GetWorld().GetActors()[0] } # This function runs when a player touches us OnInteract(Other : Actor) { # We check if the other actor is a Player if (Other:IsA()) { # We make the portal visible # This is like turning on a light PortalMesh.SetVisibility(true) } } }