Verse Library verse

02 Starts And Continues Independently

Demonstrates synchronous and asynchronous task execution using block and sync keywords for sequencing in Verse.

extracted-snippets/documentation/en-us/fortnite/task-in-verse/02-starts-and-continues-independently.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/task-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/task-in-verse.md
# Section:    starts and continues independently
# WARNING: Epic's page marks this snippet as click-to-expand. Only the preview portion was captured by the crawler — the full body is NOT in the markdown.
sync:
AsyncFunction3()  # Task 1
block:
Player.MoveTo(Target1)  # Task 2
Sleep(0.5)  # Wait 0.5 Seconds
Target1.MoveTo(Target2)
block:  # Task 3
Sleep(1.5)  # Wait 1.5 Seconds
MyLog.Print("1.5 Seconds into Move_to()")

Comments

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