Verse Library verse

01 Fragment

Configures a player movement device to apply custom run speed and jump height values.

verse-library/using-player-movement-devices/01-fragment.verse

# This is a script for our Ninja Zone
using { /Fortnite.com/Devices }

# We create a variable for our device.
# A variable is like a box that holds a value.
# Here, the box holds our Player Movement device.
my_ninja_device := PlayerMovementDevice{}

# This function runs when the island starts.
# It sets up our special movement rules.
Initialize := func()
    # We set the move speed to be very fast.
    # 2.0 means twice as fast as normal.
    my_ninja_device.SetMoveSpeed(2.0)
    
    # We set the jump height to be very high.
    # 3.0 means three times higher than normal.
    my_ninja_device.SetJumpHeight(3.0)
    
    print("Ninja Mode is ON! Run fast!")

# Start the initialization when the game begins.
Initialize()

Comments

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