# This script defines a prop that moves to a target location.
# It uses the MovableProp system to handle the animation.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
# Define our class. This is the "Blueprint" for our moving prop.
# creative_device gives it a presence on the island and an OnBegin event.
LaunchCrate<public> := class(creative_device):
# ---------------------------------------------------------
# EDITABLE PROPERTIES
# These show up in the UEFN Inspector. You can change these
# without touching the code. Think of these as your "Device Settings."
# ---------------------------------------------------------
# The prop that will actually move.
# You must drag your Creative Prop from the editor into this slot.
@editable
RootProp: creative_prop = creative_prop{}
# How long (in seconds) the movement takes.
# 1.0 = fast, 5.0 = slow float.
@editable
MoveDuration: float = 2.0
# The target offset added to the prop's starting position (in centimetres).
# Z=500 lifts the prop 500 cm (5 metres) straight up.
Verse Library
verse
01 Device
Animates a creative prop to float or launch vertically when the island session starts.
verse-library/defining-props-that-move/01-device.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.