# NPC behavior and FindCreativeObjectsWithTag best practice

**URL:** <https://forums.unrealengine.com/t/npc-behavior-and-findcreativeobjectswithtag-best-practice/2107457>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [November 6, 2024, 7:54am UTC](https://forums.unrealengine.com/t/npc-behavior-and-findcreativeobjectswithtag-best-practice/2107457 "2024-11-06T07:54:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Tonkatron8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tonkatron8](https://forums.unrealengine.com/u/Tonkatron8)\
**Post date:** [November 7, 2024, 9:34am UTC](https://forums.unrealengine.com/t/npc-behavior-and-findcreativeobjectswithtag-best-practice/2107457/5 "2024-11-07T09:34:09Z")

</div>

However it’s worth mentioning that making a singleton will likely break your code soon as mentioned in this post: [I came up with a way to make singletons in Verse - #3 by CosmicDanAU](https://forums.unrealengine.com/t/i-came-up-with-a-way-to-make-singletons-in-verse/1139453/3)

> [@I came up with a way to make singletons in Verse](https://forums.unrealengine.com/t/i-came-up-with-a-way-to-make-singletons-in-verse/1139453/4):
>
> Unfortunately, there is a reason why we don’t let you declare a global `var`: we’re not done implementing global variables, and want to reserve the right to change their behavior without breaking everybody’s code, so for now we disallow them.
> 
> We recently discovered this particular loophole ourselves, and are in the process of closing it. I recommend against using it in the meantime, as once we close the loophole, your code won’t compile.

---

_[View the full topic](https://forums.unrealengine.com/t/npc-behavior-and-findcreativeobjectswithtag-best-practice/2107457)._
