I setup an player char variable on “Event BeginPlay” and then it gets used in “Event Tick” where I check if player is within range, if it is then start playing attack animation.
But I got this error:
LogScript: Warning: Accessed None trying to read property Player Char
AlienChar_C /Game/Levels/UEDPIE_0_Mars.Mars:PersistentLevel.AlienChar_C_1
Function /Game/DarthBarian/AlienChar.AlienChar_C:is player alive:000C
PIE: Error: Blueprint Runtime Error: "Accessed None trying to read property Player Char". Node: Return Node Graph: is player alive Function: Is Player Alive Blueprint: AlienChar
This can only happen if the event tick runs before begin play so wondering if that is true.
Event Begin Play
Event Tick