#(JustinS) get direction of face that player is looking at
14 messages · Page 1 of 1 (latest)
(JustinS) get direction of face that player is looking at
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
How do I get that direction?
- define TRACED_LOCATION <player.eye_location.ray_trace>
- define DIRECTION <[TRACED_LOCATION].block.relative[<[TRACED_LOCATION]>].direction>
not too pretty and doesn't work for above and below faces
but you'll get the cardinal of the face, so either north,south,etc