Actor object reference is not compatible with blueprint object reference

Hey

This is a blueprint for a projectile ill be using and I want the projectile to do different things depending on what / who it hits. I have most of it figured out but I’m not sure what to do for this last reference here.

Below, im trying to call a function in another blueprint (BossAlly) through an interface however, im not able to set the reference as I can only pull an Actor reference through the overlap event where I need a blueprint reference. Anyone know what I could do here?

you have to cast to class.

Other actor → cast to BP Villain Ally Base Character: Success → set reference var.

Technically if you are using an interface there’s no need to cast or even bother setting a reference.

Other Actor → Does Implement Interface → Other Actor → Kill Boss Ally

Heyy, thanks a bunch. That first solution definately worked and the blueprint now looks like this.

However, I was trying to use interfaces so I wouldnt have to cast as I know thats pretty expensive for hardware. I tried your 2nd suggestion but as ive never used the node before im not exactly sure where to go from here. I’ve searched around and stumbled into the Matthew Wadstein video and he even says what u mentioned but didn’t show how to do it.

Sorry again, just very new to interfaces so not sure where to go from here

Thats very odd. I’ve got the same setup here and its not working on my end. Can you think of any reason why?

Look at my Kill Boss Ally (message)… Note the envelope icon in the top right corner of the node.

Pull off of other actor and type Kill Boss Ally in the context menu.
Select the one that has “Message” in parenthesis…

image

I SEEEEEEE. Why is it hidden in the context menu. That’s very odd. I didn’t find it at first but unchecked context sensitive and found it in there. But thats actually worked wonders so tyvm mwahmwahmwaah :)))

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