Verse Library verse

02 Known Limitations

Shows how to use the profile keyword for code instrumentation, highlighting valid and invalid operations inside blocks.

extracted-snippets/documentation/en-us/fortnite/profile-in-verse/02-known-limitations.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/profile-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/profile-in-verse.md
# Section:    Known Limitations
MyAsyncFunction()<suspends>:void=
profile: # Allowed inside <suspends> function
MyRandomInt := GetRandomInt(10, 100) # Allowed inside profile
Sleep(0.0) # Not allowed inside profile

Comments

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