Verse Library verse

08 Interacting With The Lantern

Finds interactable components and subscribes a callback to trigger when player interaction completes.

extracted-snippets/documentation/en-us/fortnite/sample-tutorial-02-movement-and-interaction-in-fortnite/08-interacting-with-the-lantern.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/sample-tutorial-02-movement-and-interaction-in-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/sample-tutorial-02-movement-and-interaction-in-fortnite.md
# Section:    Interacting with the Lantern
InteractabeleComponents := Entity.FindDescendantComponents(interactable_component)
for (InteractableComponent : InteractabeleComponents):
InteractableComponent.SucceededEvent.Subscribe(OnInteractFinished)

Comments

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