Verse Library verse

03 Npc Is Undefined Until It Is Bound After Movetonea

Demonstrates synchronous delays using Sleep to pause execution and sequence timed events.

extracted-snippets/documentation/en-us/fortnite/concurrency-overview-in-verse/03-npc-is-undefined-until-it-is-bound-after-movetonea.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/concurrency-overview-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/concurrency-overview-in-verse.md
# Section:    Npc is undefined until it is bound after MoveToNearestNPC() completes which may be several frames into the future
Print("Started")
var Seconds := 1.0
Sleep(Seconds)

Print("Waited {Second} seconds")
set Second += 1.0
Sleep(Seconds)

Print("Waited {Second} seconds")
set Second += 1.0

Comments

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