'Actor Position WS', but I need Actor Rotation WS

Weird that it’s showing that syntax error. You put the code directly into a Custom node in the Material Editor right? I’m on UE5.1.1 and it’s still working for me.

It also seemed to work for the guy in the other post about this:

Note that there is an issue with the Y value calculation in my original post which he mostly resolved in the above post, although it still doesn’t seem to be perfect.