Skip to content

Conversation

@UnderscoreTud
Copy link
Member

Problem

Currently, getting a location of something with a specific yaw/pitch is not the most intuitive thing, either requiring a long location function/expression call with the location's x, y, z and world (e.g. location({_loc}'s x, {_loc}'s y, {_loc}'z, {_loc}'s world, yaw, pitch), or spread out to multiple lines, as follows:

set {_location} to location of player
set yaw of {_location} to yaw
set pitch of {_location} to pitch

Solution

Add an expression to return a location with the specified yaw and/or pitch, for example player's location with yaw 15 and pitch 20

Testing Completed

ExprWithYawPitch.sk

Supporting Information


Completes: none
Related: none
AI assistance: none

@UnderscoreTud UnderscoreTud requested review from a team as code owners January 5, 2026 14:21
@UnderscoreTud UnderscoreTud requested review from Burbulinis and sovdeeth and removed request for a team January 5, 2026 14:21
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Jan 5, 2026
@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Jan 5, 2026
@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Jan 6, 2026
@github-project-automation github-project-automation bot moved this to In Review in 2.15 Releases Jan 6, 2026
…prWithYawPitch.java

Co-authored-by: Patrick Miller <apickledwalrus@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Pull request adding a new feature.

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

5 participants