# AnimMontage and AnimNotify Callback to Code

**URL:** <https://forums.unrealengine.com/t/animmontage-and-animnotify-callback-to-code/3405>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [April 28, 2014, 9:08am UTC](https://forums.unrealengine.com/t/animmontage-and-animnotify-callback-to-code/3405 "2014-04-28T09:08:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [April 28, 2014, 9:12am UTC](https://forums.unrealengine.com/t/animmontage-and-animnotify-callback-to-code/3405/2 "2014-04-28T09:12:38Z")

</div>

Welcome to UE4 IndyGoof!

Nice to have you here!

Can you post your code where you are wanting to call PC functions in C++ ?

If you just need to access your PC from an odd location, you can use ObjectIterator

**Wiki Link**

> **[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 — https://unrealcommunity.wiki/! You will be able to find content from...

```auto

TObjectIterator<AMyPC> ThePC;
if(!ThePC) return;
ThePC->Function();

```

---

_[View the full topic](https://forums.unrealengine.com/t/animmontage-and-animnotify-callback-to-code/3405)._
