SpawnActor does not work

I am trying to spawn coins actor in the place of socket of skeleton. But I does not work.
I printed out the location of socket on the screen. it is okay. So I tried to spawn coins using hardcoded position. it works.

I tried to fix the error over 2 hours. Does anyone have an idea to solve it ? Following one is the error meesages.

Server logged in
Play in editor total start time 0.118 seconds.
Blueprint Runtime Error: “Attempted to access PNPickupCoinActor_C_0 via property CallFunc_FinishSpawningActor_ReturnValue, but PNPickupCoinActor_C_0 is not valid (pending kill or garbage)”. Node: Set Simulate Physics Graph: DropCoin Function: Drop Coin Blueprint: PNPlayerPawn
Blueprint Runtime Error: “Accessed None”. Node: Set Simulate Physics Graph: DropCoin Function: Drop Coin Blueprint: PNPlayerPawn
Blueprint Runtime Error: “Attempted to access PNPickupCoinActor_C_0 via property CallFunc_FinishSpawningActor_ReturnValue, but PNPickupCoinActor_C_0 is not valid (pending kill or garbage)”. Node: Add Impulse Graph: DropCoin Function: Drop Coin Blueprint: PNPlayerPawn
Blueprint Runtime Error: “Accessed None”. Node: Add Impulse Graph: DropCoin Function: Drop Coin Blueprint: PNPlayerPawn

have you tried change this to always spawn?

image

maybe the location where you want to spawn collides with the potential new actor then is not spawned with default option.

1 Like

Yes. I tried all options in Collision Handling Override. But no work…

It is the skeleton of mesh

Does the editor show any error or warning after it spawns :question:
Also, make sure the spawn actor is working by using a print text just after spawn actor node