# Can't access a function from a preceding type

**URL:** <https://forums.unrealengine.com/t/cant-access-a-function-from-a-preceding-type/1656274>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [January 31, 2024, 5:02pm UTC](https://forums.unrealengine.com/t/cant-access-a-function-from-a-preceding-type/1656274 "2024-01-31T17:02:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [January 31, 2024, 5:02pm UTC](https://forums.unrealengine.com/t/cant-access-a-function-from-a-preceding-type/1656274/1 "2024-01-31T17:02:04Z")

</div>

This is from the NPC Medic Example.  
Any thoughts on how to resolve this error.

 ![cant access function](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/c/a1c8c38c5854758bafdd3d326bed269a1cdf5072.jpeg)

---

<div class="post-metadata">

**Author:** ![SatoriFN](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/satorifn/32/720436_2.png) [@SatoriFN](https://forums.unrealengine.com/u/SatoriFN)\
**Post date:** [February 2, 2024, 1:30pm UTC](https://forums.unrealengine.com/t/cant-access-a-function-from-a-preceding-type/1656274/2 "2024-02-02T13:30:43Z")

</div>

Hi @ok_studios I had the same issue. We found a few solutions over at this thread that I posted:

> [@Issue with documentation tutorial: "Create your own NPC Medic"](https://forums.unrealengine.com/t/issue-with-documentation-tutorial-create-your-own-npc-medic/1643660/5):
>
> @SatoriFN This is a tricky problem with the current compiler. Parametric classes like the queue are not currently usable outside of their file, but putting the file that calls the generic class in a submodule resolves this. Check step 2.6 in the “Healing Characters inside a volume” of the medic tutorial, that’s the part that covers moving the medic\_example into its own separate submodule. In a future version of Verse this step should be unnecessary - parametric classes like queue.verse will be u…

---

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [February 7, 2024, 4:22am UTC](https://forums.unrealengine.com/t/cant-access-a-function-from-a-preceding-type/1656274/3 "2024-02-07T04:22:44Z")

</div>

Thank you very much. Really appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 8, 2024, 4:23am UTC](https://forums.unrealengine.com/t/cant-access-a-function-from-a-preceding-type/1656274/4 "2024-03-08T04:23:10Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
