Hi,
I am having trouble with a locked door that I am making and keep getting this error when ever I press “E” Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsBP_First_Person_Character”. Node: Branch Graph: EventGraph Function: Execute Ubergraph Starter Door BP Blueprint: StarterDoorBP
I don’t know how to fix this and I have been trying to fix this error for the past 30 minutes
This is because of the event on the “C” button, you are trying to get access to the character through an event that does not give you any information about this character, you should separately cast a character in the event by pressing “C”, for example, on this event get all the actors overlapped by the door and find your character among them by the cast function, then get your “Has Card?” from it