Verse: FindCreativeObjectsWithTag should be able to function within modules

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.

# A Verse-authored creative device that can be placed in a level
hello_world_device := class(creative_device)
{
    # Runs when the device is started in a running game
    OnBegin<override>()<suspends>:void=
    {
        # TODO: Replace this with your code
        #Print("Hello, world!")
        #Print("2 + 2 = {2 + 2}")

        DoNotFollowThisExample()
    }

    DoNotFollowThisExample():void=
    {
        TaggedActors := FindCreativeObjectsWithTag(my_device_tag{})

        for( TaggedActor : TaggedActors )
        {
            # Print("Why, hello there!")
        }
    }
}

The “my_device_tag” thing is your tag. With your name. Which you should already have, or can make like in the video.

1 Like