Verse Library verse

01 Fragment

Detects player overlap on a trigger zone and activates a firework particle system for visual effects.

verse-library/creating-fireworks-using-niagara-in-unreal-editor-for-fortnite/01-fragment.verse

# This code runs when a player steps on the trigger
OnBeginOverlap(Other: Actor): void =
    # Check if the other actor is a player
    if (Other.IsPlayer() == true):
        # Tell the firework to start!
        FireworkSystem.Activate()

Comments

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