# This is our main script file.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This is our custom script.
# It controls the camera behavior.
MyCameraScript := class(creative_device):
# We need a camera device.
# This is the "eye" of our scene.
# Link this to your Fixed Point Camera device in the editor.
@editable
Camera : gameplay_camera_fixed_point_device = gameplay_camera_fixed_point_device{}
# We need a trigger device.
# The player steps on this to start the scene.
# Link this to your Button/Trigger device in the editor.
@editable
ArrivalTrigger : trigger_device = trigger_device{}
# This function starts when the island loads.
# It sets up our scene.
OnBegin<override>()<suspends> : void =
# Make sure the camera is hidden at first.
# We do not want it active yet.
Camera.RemoveFromAll()
# Wait for a player to step on the trigger.
Verse Library
verse
01 Device
Activates a fixed point camera for cinematic cutscenes when a player activates a trigger device.
verse-library/fixed-point-camera-api/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.