Verse Library verse

05 More Code Here

Checks a prop vertical position against a target height and pauses execution using synchronization commands.

extracted-snippets/documentation/en-us/uefn/28-00-release-notes-in-unreal-editor-for-fortnite/05-more-code-here.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/28-00-release-notes-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/28-00-release-notes-in-unreal-editor-for-fortnite.md
# Section:    more code here
PropPosition := Prop.GetTransform().Translation # note the trailing comma here has been removed

if(Round[PropPosition.Z] = Round[ROOT_POSITION.Z]) { break }
Sleep(0.0)
Copy full snippet

Comments

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