Verse Library verse

01 Fragment

Configures an auto-repair garage device to rapidly repair vehicles and replenish fuel on game start.

verse-library/using-vehicle-service-station-devices-in-fortnite-creative/01-fragment.verse

# This is a comment. It explains the code.
# We are making a super-fast garage!

# This variable holds how fast we repair.
# A higher number means faster repair.
var repair_speed: float = 100.0

# This function runs when the game starts.
OnBegin<override>()<suspends>: void =
    # We tell the device to start repairing.
    # We use our fast repair_speed variable.
    SetRepairRate(repair_speed)
    
    # We also fill fuel very fast.
    SetFuelRate(repair_speed)
    
    print("Garage is ready! Drive in!")

Comments

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