using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Symbols }
# This is our "Device" - the brain of our operation.
# Think of it like a Scoreboard Device, but smarter.
script MyPlaySpaceValidator: Device {
# VARIABLES: The "Loot" we care about.
# A "Handle" is like a remote control for an Entity.
# We need handles to our floating platforms.
Platform_A: Entity = ?
Platform_B: Entity = ?
# CONSTANTS: The rules of the universe.
# Max jump height is roughly 100 units.
# If a platform is higher than this, players can't reach it without help.
const MAX_JUMP_HEIGHT: float = 100.0
# FUNCTIONS: The "Actions" our device takes.
# This function checks if a platform is reachable.
.Is_Reachable(Platform: Entity) -> bool:
# Get the Transform (Position/Rotation) of the platform.
# Think of Transform as the platform's "GPS Coordinates".
Transform: Transform = Platform.Get_Transform()
# Get the Y (Height) value from the Transform.
Height: float = Transform.Get_Location().Get_Y()
# If the height is less than our max jump, it's reachable.
return Height <= MAX_JUMP_HEIGHT
Verse Library
verse
01 Fragment
Script that checks platform heights at game start to determine player jump reachability.
verse-library/finish-constructing-the-play-space/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.