This was working just fine when they were actors. But now I get these errors:
Blueprint Runtime Error: "Attempted to access BP_TestCharacter2_C_0 via property K2Node_DynamicCast_AsBP_Creature, but BP_TestCharacter2_C_0 is not valid (pending kill or garbage)". Node: Set CreatureHitPointsCurrent Graph: EventGraph Function: Execute Ubergraph BP Level Manager Blueprint: BP_LevelManager
Blueprint Runtime Error: "Attempted to assign to None". Node: Set CreatureHitPointsCurrent Graph: EventGraph Function: Execute Ubergraph BP Level Manager Blueprint: BP_LevelManager
So, is there something else that the pawns need to spawn? Otherwise, is it possible to give them AI and have them be actors somehow?
The first error means that you’re attempting to access an actor that has already been deleted, but is still in the garbage queue.
The second means the actor is not valid. You could get that if something is the garbage for long enough. Or, it never was a valid actor ( the reference was not assigned ).
Yeah, I understand that. What I don’t understand is why it’s not valid. I’m literally spawning it immediately before I try to set this variable; what is causing it to get deleted right away?