# How can I call a function in my gamemode from an actor (cyclic dependency)?

**URL:** <https://forums.unrealengine.com/t/how-can-i-call-a-function-in-my-gamemode-from-an-actor-cyclic-dependency/287020>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [June 29, 2014, 12:56pm UTC](https://forums.unrealengine.com/t/how-can-i-call-a-function-in-my-gamemode-from-an-actor-cyclic-dependency/287020 "2014-06-29T12:56:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hard\_code](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hard\_code](https://forums.unrealengine.com/u/hard_code)\
**Post date:** [June 29, 2014, 2:53pm UTC](https://forums.unrealengine.com/t/how-can-i-call-a-function-in-my-gamemode-from-an-actor-cyclic-dependency/287020/2 "2014-06-29T14:53:17Z")

</div>

I’ve had this problem with PlayerController and the HUD class. You solve cyclic dependency issues with forward declarations as described here in this tutorial

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-call-a-function-in-my-gamemode-from-an-actor-cyclic-dependency/287020)._
