Verse Library verse

18 Resume Ufo Patrol

Enables or disables mesh and light components for a custom abduction beam visual effect.

extracted-snippets/documentation/en-us/fortnite/sample-tutorial-03-flexible-gameplay-in-fortnite/18-resume-ufo-patrol.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/sample-tutorial-03-flexible-gameplay-in-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/sample-tutorial-03-flexible-gameplay-in-fortnite.md
# Section:    Resume UFO Patrol
EnableAbductionBeam():void =
for:
Mesh : Entity.FindDescendantComponents(Meshes.S_EV_SimpleLightBeam_01)
do:
Mesh.Enable()
for:
Light : Entity.FindDescendantComponents(spot_light_component)
do:
Light.Enable()
DisableAbductionBeam():void =
for:
Mesh : Entity.FindDescendantComponents(Meshes.S_EV_SimpleLightBeam_01)
do:
Mesh.Disable()
for:
Light : Entity.FindDescendantComponents(spot_light_component)
do:
Light.Disable()

Comments

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