Verse Library verse

16 Objective Coordinator Device Verse

Moves the objective marker to a destination and pulses it for the player on device start.

extracted-snippets/documentation/en-us/uefn/moving-objective-marker-in-verse/16-objective-coordinator-device-verse.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/moving-objective-marker-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/moving-objective-marker-in-verse.md
# Section:    Objective\_coordinator\_device.verse
using { /Verse.org/Simulation }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Playspaces }
using { /UnrealEngine.com/Temporary/SpatialMath }

objective_coordinator_device<public> := class<concrete>(creative_device):

    var PlayerOpt<private> : ?player = false

    @editable
    PickupMarker<public> : objective_marker = objective_marker{}

    # Where the marker will be moved to
    @editable
    Destination<public> : transform = transform{}

    # How much time the marker should take to reach its new location
    @editable
    MoveTime<public> : float = 0.0

    OnBegin<override>()<suspends> : void =

        FindPlayer()

        PickupMarker.MoveMarker(Destination, ?OverTime := MoveTime)

        # if Player is not set to false, active the objective pulse for the found player

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.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in