Verse Library verse

01 Device

Script to control creative character devices and sync NPC emote animations via triggers.

verse-library/using-character-devices-in-fortnite-creative/01-device.verse

# SyncDanceController.ver
# This script makes the Character Device Controller force all linked characters
# to perform a specific emote when triggered.

using { /Fortnite.com/Devices }
using { /Verse.org/Sim }
using { /UnrealEngine.com/Temporary/Symbols as E }

# This is our main script structure.
# Think of 'SyncDanceController' as the name of the 'Brain' for this device.
sync_dance_controller := class(creative_device):

    # VARIABLE: The Remote Control
    # We need a variable to hold a reference to the Character Device Controller.
    # In game terms, this is like holding the actual remote in your hand.
    # 'CharacterDeviceController' is the type of the object.
    # ':=' means "assign this right now."
    controller : CharacterDeviceController = character_device_controller

    # VARIABLE: The Emote to Play
    # We want to store which emote we want them to do.
    # This is like choosing the song on the playlist.
    # We use a 'string' (text) to identify the emote name.
    dance_emote : string = "emote_floss_v01"

    # EVENT: OnBeginPlay
    # This runs once when the game starts.
    # It's like the "Soundcheck" before the concert.
    OnBeginPlay() -> unit:
        # For now, we just log a message to the debug console.

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