#Doesn't work

1 messages · Page 1 of 1 (latest)

light gate
#

force the head of the player to look towards event-entity's feet
This is directly taken from the skunity docs, it does NOT WORK
Skript 2.8.5, Minecraft Spigot 1.16.5, IT DOES NOT WORK
Code:
force the head of event-player to look towards event-player's feet

near flame
light gate
edgy sand
#

well send the whole code

#

not just the line that doesnt work

light gate
#

I’ve been coding In skript for 6 years now I know I’m not making a mistake here

edgy sand
#

do you get any errors?

light gate
#

Yes, “unable to understand condition/effect”

edgy sand
#

so weird, examples taken straight from skripthub dont work for me either

#

even with some modifications

light gate
#

Yeah, it annoys me so much because the examples are supposed to be the one thing we can rely on

#

I found a workaround by just teleporting the player to the same location with a rotated yaw anyways.
But if anyone here is good at maths, I could REALLY use help in #1240242320515924029

near flame
torpid current
#

or just make (entity) face (location)

light gate
light gate
#
                if distance between {_the} and event-player is less than 51:
                    set {_loc1} to {_the}'s location
                    set {_loc2} to event-player's location
                    teleport event-player to {_loc1}
                    teleport {_the} to {_loc2}
                    make {_the} face event-player's location```
#

Code btw

edgy sand
#

wait wait

#

sk version?

#

oh nvm

light gate
#

2.8.5

ruby haven
#

set {_v} to vector from {_the} to player
pitch/yaw of {_v} gives you where the player needs to look, you can teleport them

light gate
#

I know, it's the workaround, but the problem is that the original syntax itself isn't working resulting into having to use a workaround

ruby haven
#

there is no such syntax like that

edgy sand
#

?

ruby haven
#

!force me to look at target's location works for me

light gate
ruby haven
ruby haven