Hello, sorry for the silly question but what would be the equivalent of this "set {_loc} to the location 1 meter above the player" but instead of changing the location on the Y axis being 'above' in this example; how would I change it to the X or Z axis or can I do it relatively to the player like "set {_loc} to the location 1 meter left of the player"
#X and Z equivalent of "set {_loc} to the location 1 meter above the player"
1 messages · Page 1 of 1 (latest)
set {_loc} to location 1 to the left and 2 above player's head
set {_loc} to location 3 horizontally in front of player's head```
you can use vectors to offset, get a vector from player's yaw and pitch. then you must add 90 degrees in vector form to it, easiest way to do it is to make it using sine and cosine functions so vector(sin(90), 0, cos(90)) after that just offset the player's location using the sum of the 2 vectors