Skip to main content
edited tags
Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61
Don't repeat tags in title
Source Link
DMGregory
  • 140.8k
  • 23
  • 257
  • 401

Unreal 5: Cannot access pawn from attached actor component

I have a pawn blueprint that contains some AI movement code, and looks like this:

enter image description hereBlueprint screenshot

Now I'm attempting to move that functionality into an actor component so it's easily transferrable to other enemy types.

enter image description hereBlueprint screenshot

However, I'm having trouble grabbing the pawn itself for the AI Move To. Get Owner isn't compatible since it specifically wants an Actor Reference and not a Pawn Reference. Get Pawn Owner doesn't like that 'self' is an Actor Component and not a Pawn Movement Component.

Is there some other, magic function I should be using? Do I need to rewrite my entire entity as an actor instead of a pawn?

Unreal 5: Cannot access pawn from attached actor component

I have a pawn blueprint that contains some AI movement code, and looks like this:

enter image description here

Now I'm attempting to move that functionality into an actor component so it's easily transferrable to other enemy types.

enter image description here

However, I'm having trouble grabbing the pawn itself for the AI Move To. Get Owner isn't compatible since it specifically wants an Actor Reference and not a Pawn Reference. Get Pawn Owner doesn't like that 'self' is an Actor Component and not a Pawn Movement Component.

Is there some other, magic function I should be using? Do I need to rewrite my entire entity as an actor instead of a pawn?

Cannot access pawn from attached actor component

I have a pawn blueprint that contains some AI movement code, and looks like this:

Blueprint screenshot

Now I'm attempting to move that functionality into an actor component so it's easily transferrable to other enemy types.

Blueprint screenshot

However, I'm having trouble grabbing the pawn itself for the AI Move To. Get Owner isn't compatible since it specifically wants an Actor Reference and not a Pawn Reference. Get Pawn Owner doesn't like that 'self' is an Actor Component and not a Pawn Movement Component.

Is there some other, magic function I should be using? Do I need to rewrite my entire entity as an actor instead of a pawn?

Source Link

Unreal 5: Cannot access pawn from attached actor component

I have a pawn blueprint that contains some AI movement code, and looks like this:

enter image description here

Now I'm attempting to move that functionality into an actor component so it's easily transferrable to other enemy types.

enter image description here

However, I'm having trouble grabbing the pawn itself for the AI Move To. Get Owner isn't compatible since it specifically wants an Actor Reference and not a Pawn Reference. Get Pawn Owner doesn't like that 'self' is an Actor Component and not a Pawn Movement Component.

Is there some other, magic function I should be using? Do I need to rewrite my entire entity as an actor instead of a pawn?