Verse Library verse

10 Hiding And Showing The Platform

Handles the main event loop that hides the platform, waits randomly, then makes it visible again.

extracted-snippets/documentation/en-us/uefn/disappearing-platform-on-touch-using-verse-in-unreal-editor-for-fortnite/10-hiding-and-showing-the-platform.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/disappearing-platform-on-touch-using-verse-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/disappearing-platform-on-touch-using-verse-in-unreal-editor-for-fortnite.md
# Section:    Hiding and Showing the Platform
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
# Wait for DisappearDelay seconds.
Sleep(DisappearDelay)
# Make the platform invisible.
DisappearingPlatform.Hide()
# Wait between DelayMin and DelayMax seconds.
Sleep(GetRandomFloat(DelayMin, DelayMax))
# Make the platform visible.
DisappearingPlatform.Show()

Comments

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