0

I'm pretty new at Ue5. I tried to follow a YouTube tutorial about making FPS game with Unreal Engine. I'm now stuck with an error when trying to spawn a weapon at my character newly created socket.

My newly created "WeaponSlot" Socket: enter image description here

The code: enter image description here

Error log: enter image description here

From what I noticed, the only difference in code is "AttachTo" function, it should be "AttachToComponent". But there is no such function.

enter image description here

I'm super new to Unreal Engine. Any suggestion, or maybe another method to spawn the gun is highly appreciated.

Romario Rio
  • 196
  • 1
  • 11

1 Answers1

0

I found the answer. You have to return target actor like so : enter image description here

Romario Rio
  • 196
  • 1
  • 11
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Oct 01 '21 at 06:14