How to Disable Input of Owner Actor from its ActorComponent

I’ve been racking my brain and tried every permutation of Get Owner, Get Player Pawn/Controller/Character, etc. and just cant seem to disable bound events of an Owner actor set up from it’s Actor Components attached to it. Tried casting as well etc., missing something here.

Basically I link up this Actor Component on Actors and want to disable the Actor’s inputs programmatically from the Actor Component’s BP

Try plugging in Get Player Controller function to Player Controller pin in Disable Input node.

Tried before and again now still a no

Ok, is Disable input actually getting called? did you try adding a brakepoint to disable input? or you could also try adding a print string after disable input and see if it prints.

Yeah still no dice, prints and breaks properly

Figured it out. I wasn’t casting my Get Owner targets in the bound events. If this is the case, how do I create generic bind events for these components without knowing the owner and casting for each and every kind of possible owner?

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