Verse Library verse

08 Define The Puzzle Component

Handles trigger events and asynchronously checks if a puzzle configuration has been solved.

extracted-snippets/documentation/en-us/fortnite/lights-and-bridges-02-puzzle-component-in-fortnite/08-define-the-puzzle-component.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/lights-and-bridges-02-puzzle-component-in-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/lights-and-bridges-02-puzzle-component-in-fortnite.md
# Section:    Define the Puzzle Component
# Handle triggered events sent through the Scene Graph hierarchy
OnReceive<override>(SceneEvent:scene_event):logic=
if (TriggeredEvent := triggered_event[SceneEvent], TriggeredEntity := TriggeredEvent.TriggeredEntity?):
spawn{CheckPuzzleSolved()}
true
false

Comments

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