Verse: FindCreativeObjectsWithTag should be able to function within modules

I am tring to get some devices with that roundabout but it seems imposible:

var MyVariable:weak_map(session,creative_device) = map{}
if(Device:=MyVariable[GetSession()]):
            AllCreativeObjects:=Device.FindCreativeObjectsWithTag(helper{})
            for(CreativeObjects : AllCreativeObjects):
                Print("THE CODE DOES NOT REACH THIS Trying to find tag on object")
                if(Helper := mob_behavior_helper[CreativeObjects]):
                    PrintFatalError("Tag object MaybeMobBehaviourHelper found")
                    set MaybeMobBehaviourHelper = option{Helper} 
                    set LastSpecialAction = Helper.TotalTime-99
                else:
                    PrintFatalError("Tag object MaybeMobBehaviourHelper not found")
                if(Spawner := player_spawner_device[CreativeObjects]):
                    PrintFatalError("PlayerSpawner device found")
                else:
                    PrintFatalError("Tag object MaybeMobBehaviourHelper not found")

1 Like