I´am studying a tutorial book and has occurred this error:
Attempted to access BH_Character via property K2Node_DynamicCast_AsBH_Character
but BH_Character_C_5 is pending kill from function: ‘ExecuteUbergraph_BH_GameMode’ from node: Bind Event to OnDestroyed in graph:
EventGraph in object: BH_GameMode with description: Attempted to access BH_Character_C_5 via property K2Node_DynamicCast_AsBH_Character, but BH_Character_C_5 is pending kill
Any ideias?
It looks like only 1 bh character is present in game at a time. When you destroy him, then you probably want to respawn him but you using cast node to character which is being to be destroyed so this cant work… you need rework this behavior… just in gamemode - get PC, spawn actor and possess him, i dont see any reason why that cast node id necessary here…maybe im wrong i just checked it briefly