I may be using this wrong, but I am wanting to fire some logic when I call the event, it just doesn’t seem to work…
Main Class

Executed Class

Cheers,
I may be using this wrong, but I am wanting to fire some logic when I call the event, it just doesn’t seem to work…
Main Class

Executed Class

Cheers,
Well since the Target is left to self
Im pretty sure you dont know what a Interface is. (even if its technicly correct its not the usual use case)
I highly recommand you to watch this training Session completly but if you just want to know about Interfaces start at ~36:30
Good Luck and have Fun =)
So how could I execute event like code between BP’s? I swear I’ve done this before…
Thats what the Video is for
there are multiple ways. And without more Context I cant help you at all.
You need a reference to that executed class to feed into the ‘target’ of the main class. So if you want to send a message to your controller (which I think you might be trying to do here?), feed a get player controller into the target of the main class and ensure your topdowncontroller class itself has the interface implemented in its class settings section.
I’m trying to send a message to an actor class, so when the controller executes a task (i.e cut down tree) it send it to the actor class which handles all of that logic
There must be something fundamental I’m missing, I’ve watch the video provided above twice now, but it’s going through things I already understand :\
Don’t know if this this is a bug with 4.12 or I’m having the worlds biggest brain fart…
Well than you skipped a lot. A Interface is just a Promise that certain Functions exist on the Object who Implements it.
Lets say you have a Bullet with a OnHit Event. And a Interface with a TakeDamage() function. On Hit gives you a refference to a Actor you Hit (Thats your Target) we dont know the Explicit type we hit (Was it a Wall? a Enemy? The Floor? Another Player?) imagine how many Cast To X nodes you would need. With a Interface we dont care we simply say Actor refference → TakeDamage we dont Care how or even if you can just do it.
But you still need a Object refference as Target. Because you can have Multiple NPC as example which of them does TakeDamage? Thats what the Target Pin is for.
So your fundamental Problem is you dont know how to get a refference in the First place
and again the Video Covers it in Multiple ways.
Yeah sorry dude, didn’t realise you had to add the interface event directly off the actor pin… won’t work if you add the event then connect it to the reference, I swear this was never an issue in other builds…