#(hby_only19) script look question

1 messages · Page 1 of 1 (latest)

tawny aspen
#

hey guys I am trying to make npcs look at players while their heads goes up and down,so I made a random number and used this
look <player.eye_location.with_pitch[<[random_number]>]> but it doesn’t work,the npc only look at player directly without head going up and down,what’s wrong???here’s the code

warm skyBOT
#

(hby_only19) script look question

warm skyBOT
#

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.

stark sleet
#

What does your debug say is happening?

tawny aspen
desert dome
#

iirc denizen pitch ranges from 0-180, not -90 to 90

tawny aspen
#

I just edited ,I even tried -360 to 360 ,but still ,why?

tawny aspen
full venture
#

!c look

summer skyBOT
# full venture !c look
Group

entity

Syntax

look (<entity>|...) [<location>/cancel/yaw:<yaw> pitch:<pitch>] (duration:<duration>) (offthread_repeat:<#>)

Short Description

Causes the NPC or other entity to look at a target location.

Description

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.

full venture
#

^ 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

tawny aspen
full venture
#

No worries!

#

Feel free to ask if you need any more help, otherwise -

vestal tuskBOT
#
Thread Closing Reminder

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