# This is a simple idea of how a fan works in code.
# We wire up the two editor-placed devices in a Verse device class.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# A Verse device that represents our composed fan object.
fan_controller := class(creative_device):
# Drag the Air Vent device into this slot in the editor.
# This is the "Power" part — it does the real pushing.
@editable
Power : air_vent_device = air_vent_device{}
# OnBegin runs automatically when the game starts.
# This matches what we did manually in the editor steps above.
OnBegin<override>()<suspends> : void =
# Hide the square device so only the pretty fan prop shows.
# note: air_vent_device has no runtime SetVisible; visibility
# is controlled by the "Visible During Game" editor setting,
# which we already turned Off in Step 4.
# Enable the vent so it starts pushing players right away.
Power.Enable()
Verse Library
verse
01 Device
Implements a device class that automatically activates a linked Air Vent device upon game start.
verse-library/fall-guys-fan/01-device.verse