Skript

Skript

743k Downloads

EffLook (make entity look at) doesn't work with vector

denloself opened this issue ยท 1 comments

commented

Skript/Server Version

[23:14:39 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[23:14:39 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[23:14:39 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[23:14:39 INFO]: [Skript] Server Version: git-Paper-496 (MC: 1.20.4)
[23:14:39 INFO]: [Skript] Skript Version: 2.8.5 (skriptlang-github)
[23:14:39 INFO]: [Skript] Installed Skript Addons: 
[23:14:39 INFO]: [Skript]  - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[23:14:39 INFO]: [Skript]  - Skellett v2.0.10 (https://forums.skunity.com/resources/skellett.24/)
[23:14:39 INFO]: [Skript]  - skUtilities v0.9.2 (https://tim740.github.io/)
[23:14:39 INFO]: [Skript]  - SkQuery v4.1.10
[23:14:39 INFO]: [Skript]  - SkBee v3.5.0 (https://github.com/ShaneBeee/SkBee)
[23:14:39 INFO]: [Skript]  - SkJade v1.4.3 (https://www.github.com/Ankoki-Dev/SkJade)
[23:14:39 INFO]: [Skript]  - SharpSK v1.6.3
[23:14:39 INFO]: [Skript]  - MythicSkriptAddon v0.99.7
[23:14:39 INFO]: [Skript] Installed dependencies: 
[23:14:39 INFO]: [Skript]  - Vault v1.7.3-b131
[23:14:39 INFO]: [Skript]  - WorldGuard v7.0.9+5934e49
[23:14:39 INFO]: [Skript]  - GriefPrevention v16.18.3

Bug Description

EffLook (make entity look at) effect doesn't work with vectors.
I am trying to use this effect from the official documentation.

Expected Behavior

change the yaw and pitch of the player to the yaw and pitch of the vector

Steps to Reproduce

reproduction code:

command /effLookTest:
  permission: skript.thing
  trigger:
    set {_vec} to vector from yaw 45 and pitch 45
    make the player look at {_vec}
    message "%{_vec}%" to the player
    
# nothing happens. 
# i also tried testing the vector with a `push` effect but it is working as expected

another test code:

command /effLookTest:
  permission: skript.thing
  trigger:
    make the player look at vector from yaw 45 and pitch 45

# this will make the player looks into x=0, y=0, z=0 of the world

both of them have no error

Errors or Screenshots

No response

Other

I am sorry if this is simply due to my misunderstanding of vectors

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

Looks like whoever wrote the examples was incorrect. The effect treats the vector as x/y/z coordinates, it does not use the yaw/pitch of the vector.

See

player.lookAt(vector.getX(), vector.getY(), vector.getZ(), LookAnchor.EYES);