MoveToActor() Crashes UE4

Hello,

When I use MoveToActor() in my game UE4 crashes. Here is my code:

.h:

#include "GameFramework/AIController.h"
class AAIController* AI;

.cpp:

AI->MoveToActor(TargetEnemy, 500, true, true, true);

Thanks for the help!

Hi ,

Thank you for your report. In order to help us reproduce this issue, we could benefit from some additional information. Please see this post for some reporting guidelines which can be very helpful, and then edit your post with any additional information you can provide.

Thanks.

Thats really the only information relevant to it. It extends the character class too. Am I doing something wrong or am I implementing it the right way?

There’s way to little information here for us to be able to help you. A callstack would be useful for example.

Hi ,

I don’t see anything right away that seems wrong. I was able to test a similar set up using Blueprints and it worked fine. Are you using an Editor running from binaries, or did you compile your Editor from source code? What version are you using? Do you see this crash if you create a new project from one of the templates, or does it only happen in your project? When the Editor crashes, do you see the crash reporter to send that information to us? If so, what is the call stack that you see there? Can you provide the logs that are generated by the Editor when it crashes?

Thanks,

I didnt mean to submit this in bug reports. I meant to submit it in the C++ question place. I probably am just casting wrong and had a brainfart. Ive been away and havent looked at my code since then.

Also as far as callstack, I never get one for some reason. I used to back in the beta. No clue why it doesnt show anymore.

Hi ,

I apologize for not getting back to you on this issue. Are you still having trouble with this?

Hi ,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.