Verse Library verse

01 Results And Returns

Demonstrates basic Verse function syntax and invocation within a game loop start event.

extracted-snippets/documentation/en-us/fortnite/basics-of-writing-code-7-specifying-the-result-of-a-function-in-verse/01-results-and-returns.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/basics-of-writing-code-7-specifying-the-result-of-a-function-in-verse
# Local doc:  epic-docs/documentation/en-us/fortnite/basics-of-writing-code-7-specifying-the-result-of-a-function-in-verse.md
# Section:    Results and Returns
# 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.
MyFunction() : int =
return 5
OnBegin<override>()<suspend> : void =
MyFunction() # result is 5

Comments

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