-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaw/Pitch of location does not work if the location is in a variable #2708
Comments
That's not your problem, your problem is that the
Then it should not return |
it still returns none and in older version of Skript it worked right |
Can replicate, my bad. Setting a location's yaw/pitch does not work |
can we increase priority @Wealthyturtle ? well i used an explicit function instead of deriving the location from the player so that means there is no way of teleporting an entity with specific yaw and pitch |
encountered this exact issue on paper 1.14.4 / spigot 2.4 just last night |
Extracting the yaw & pitch via skript-mirror works correctly (last line of the code) |
to avoid the need of changing your scripts to use skript-mirror code, I have made a replacement for broken vanilla Skript syntaxes:
|
Can this be rechecked? I just did some testing and it seems to work. example code: command /test:
trigger:
set {_l} to location(1, 1, 1, world "world", 11, 12)
send "Y: %yaw of {_l}%"
send "P: %pitch of {_l}%"
set yaw of {_l} to 10
set pitch of {_l} to -45
send "Y: %yaw of {_l}%"
send "P: %pitch of {_l}%" output:
|
Try
|
I just tested, I cannot reproduce this bug anymore on 2.5beta4, so it's fixed, yay! closing |
Description
Yaw/Pitch of location does not work if the location is in a variable
Steps to Reproduce
set {_loc} to location of player
send "%pitch of {_loc}% %yaw of {_loc}%"
all none ^
Expected Behavior
Expected to give same result as %yaw of player% does
Errors / Screenshots
no errors
Server Information
The text was updated successfully, but these errors were encountered: