# Using SearchCriteria to find objects with multiple gameplay tags

**URL:** <https://forums.unrealengine.com/t/using-searchcriteria-to-find-objects-with-multiple-gameplay-tags/1162127>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 11, 2023, 4:28am UTC](https://forums.unrealengine.com/t/using-searchcriteria-to-find-objects-with-multiple-gameplay-tags/1162127 "2023-05-11T04:28:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JacobBeamish1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JacobBeamish1](https://forums.unrealengine.com/u/JacobBeamish1)\
**Post date:** [May 11, 2023, 4:28am UTC](https://forums.unrealengine.com/t/using-searchcriteria-to-find-objects-with-multiple-gameplay-tags/1162127/1 "2023-05-11T04:28:34Z")

</div>

How can I use SearchCriteria to reference only objects that have two tags?

Could someone show me an example of initializing tags, an array of tags, and then SearchCriteria using that array?

I am currently stuck with red lines while trying to initialize an array of tags. Here is the code I have so far:

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

Style1 := class(tag){}

RequiredTags : []tag = array{Style1{}}

SearchCriteria1 := class(tag\_search\_criteria){RequiredTags:[]tag := RequiredTags}

Both of the last two lines are underlined in red.
