Verse Library verse

05 Write The Verse Code

Subscribes to a success event when the entity enters the scene to prevent duplicate handlers.

extracted-snippets/documentation/en-us/fortnite/create-an-item-pickup-interactable-component-in-fortnite/05-write-the-verse-code.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/create-an-item-pickup-interactable-component-in-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/create-an-item-pickup-interactable-component-in-fortnite.md
# Section:    Write the Verse Code
OnAddedToScene<override>():void =
if(not SucceededEventHandler?):
set SucceededEventHandler = option{SucceededEvent.Subscribe(OnSucceededEvent)}

Comments

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