Verse Library verse

01 Fragment

Creates a trigger-activated floor tile that temporarily disappears and reappears after a delay.

verse-library/using-trick-tile-devices-in-fortnite-creative/01-fragment.verse

# This is a simple plan for our Trick Tile
# We call this plan a "Script"

# 1. Define the Trick Tile
MyFloor := TrickTileDevice{
    # This is the device we placed
}

# 2. Define the Trigger
MyTrigger := TriggerDevice{
    # This is the sensor we placed
}

# 3. Connect them
# When the Trigger is touched...
MyTrigger.OnTriggered += func(TriggerDevice):
    # ...Wait for 3 seconds
    Wait(3.0)
    # ...Then make the floor disappear
    MyFloor.Disable()

# 4. Make it come back
# After it disappears, wait 5 seconds
    Wait(5.0)
    # ...Then make the floor reappear
    MyFloor.Enable()

Comments

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