air_vent_device

device
air_vent_device<public> := class<concrete><final>(creative_device_base)

Used to boost `agent`s, vehicles, and other objects upwards into the air.

Module
/Fortnite.com/Devices
Source
fortnite

Used in

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()
# It detects when a vehicle enters the area.
    # Wire this to a trigger_device in the UEFN editor.
    @editable
    Trigger: trigger_device = trigger_device{}

    # This is the Air Vent device that delivers the upward push.
    # Wire this to an air_vent_device placed under the jump pad.
    # note: air_vent_device is the real API for the Air Vent creative device.
    @editable
    AirVent: air_vent_device = air_vent_device{}

    # This is the Force we apply to the jump.
    # 5000 is a strong push. Try changing this number!