get actor rotation return a rotator, you need use break rotator to break to roll, yaw, pitch. and just use yaw value as your heading value.
and remember add this in your character blueprint class. then get actor rotation means get your player’s rotation, not other actor’s rotation.
good luck!