Ender dragon rotation problem
I am new to datapacks and am trying to make a pack where you can play as an enderdragon. I tried this command
Continue to help postexecute at NotNotIronBoy rotated as NotNotIronBoy run tp @e[type=minecraft:ender_dragon] ~ ~-3 ~
in a repeating command block to tp the ender dragon just slightly below me but it doesnt face the direction im looking in. How can i fix this?