How do I stop walking while busy fishing.

I’ve been searching for the answer for a long time before asking, hope someone can explain.

I have made an animation for fising (some youtube guide helping me) but he is using 3rd person and I’m using TopDown. In my BP_TopDownControlle I have the walking event. In my BP_TopDownCharacter I have the fishing event.

Now I want to be unable to walk if I’m already fishing, but both these are in different BP’s.
How do I use the “if fishing” from one BP on the other BP?

Let me know if you need more info,

Thanks for the help,

Hello @flomiel you can try to make variable bIsFishing in your controller. Out of your movement event check bIsFishing and only move if it’s false. In your Character where the fishing event is when the player starts fishing cast to your controller and set bIsFishing to true. If you have problems setting that up or it doesn’t work send your blueprints I will be happy to help.

Thanks for your response this sounds great, I’ll try that and come back to you if I need more help!

1 Like

Controller ref I put in variable type to player controller. But how to connect the cast so that bIsFishing gets true.

Sorry as a new guy I’m apparently not allowed to upload more then 1 img. So I can’t share the controller, but I’m sure I can solve that. But I’m not sure how to connect this Cast so that bIsfishing is set to true.

I came as far as above, tried different connections but I do not seem to get it yet… haha :wink:

Fixed it by doing this instead, posting it for any feedback.

1 Like

@flomiel Yeah that is how you cast to your controller. In the variable list you have a variable called controllerRef delete it if you are not using it. Just so you can keep the blueprint clean. Or you also can do something like this:

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