Skip to content

The Right of Direction does not return the correct position. #3334

Description

@vhone

Description

"infont" goes to the front of the facing.
"right" also goes to the right of the facing.
But reach of right is shortened when the pitch of facing changes.

Steps to Reproduce

command /test:
	trigger:
		set {_loc} to location 1 right head of player
		execute command "/particle dust 0 0 1 2 %x-coord of {_loc}% %y-coord of {_loc}% %z-coord of {_loc}% 0 0 0 0 50 normal @a" by console

Expected Behavior

Regardless of the pitch, you need to be able to get the right position in the direction you look.

Errors / Screenshots

2020-08-25_01 18 56
2020-08-25_01 19 07
2020-08-25_01 19 10

Server Information

  • Server version/platform: Paper 1.16.1 build 116
  • Skript version: 2.5-beta2

Additional Context

I know how to solve this problem with a vector. However, I wonder if the value returned by right of direction is intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions