I currently have my enemy AI able to patrol areas using a BTTask in my BehaviorTree but they are always facing whatever default direction they are facing when placed in the world/spawned, so if they are placed in the world looking to the right they will always face the right regardless of if they are moving to the right or left.
I’ve set the destination of GetRandomReachablePointInRadius as a variable that I can use in my BP_Enemy but I’m not sure how or where to use it (or if I should even be using it there?). I’m still quite new and so I’ve been following tutorials online but many aren’t suited well for the 2D characters in 3D world. My best guess would be to somehow make the sprite flip 180degrees or remain the same based on the patrol destination location being to the left or right of the enemy’s current position but I’m unsure of how to exactly do that.
I am using the PaperZD plugin if that makes a difference. Any help would be appreciated and here are some screenshots.