#(hby_only19) script look question
1 messages · Page 1 of 1 (latest)
(hby_only19) script look question
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
What does your debug say is happening?
it seems that everything’s fine,and the pitch had successfully modified,but in game it doesn’t look with pitch,check the yellow number in the picture
iirc denizen pitch ranges from 0-180, not -90 to 90
I just edited ,I even tried -360 to 360 ,but still ,why?
the fun fact is if I edited the code to this ,it will face the one direction and go up and down,how ever it can’t face the player,ahhhhhhhhhh I am going insaneeeeeee
!c look
entity
look (<entity>|...) [<location>/cancel/yaw:<yaw> pitch:<pitch>] (duration:<duration>) (offthread_repeat:<#>)
Causes the NPC or other entity to look at a target location.
Makes the entity look towards the location.
You can specify either a target location, or a yaw and pitch.
Can be used on players.
If a duration is set, the entity cannot look away from the location until the duration has expired.
Use the cancel argument to end the duration earlier.
Optionally, you can use the "offthread_repeat:" option alongside "yaw:" and "pitch:"
to cause a player's rotation to be smoothed out with a specified number of extra async rotation packets within a single tick.
^ you're making the NPC look at a location, the pitch doesn't matter because they're just looking at the location
Can either make them look at the player then adjust the pitch, or get locations slightly above/below the player
thanks
I really appreciate your help
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@tawny aspen