#(JustinS) Adjust NPC pathoptions

46 messages · Page 1 of 1 (latest)

winged flame
#

How can I adjust NPC pathopts without - execute "the command" as_player?
I can't always do it via the player because not every player has perms to mess with the npcs, though I do have something seperate that allows them to create npcs. as_server also doesnt work because theres no selected npc

hidden forumBOT
#

(JustinS) Adjust NPC pathoptions

hidden forumBOT
#

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.

winged flame
#

I'd expect denizen and citizens to at least have most options available to change via denizen though it turns out a lot of them are missing

winged flame
#

Im trying to change the falling distance of npcs btw

drifting haven
past dewBOT
drifting haven
#

?

winged flame
#

Returns how far the entity has fallen.

#

Not the pathopt

#

what Im talking about is the maximum allowed falling distance when calculating paths

drifting haven
#

ya i dont rly see anything on the meta

#

it might be hidden somewhere on there or just not implemented at all

#

though you still can use execute to do this

#

!c execute

past dewBOT
# drifting haven !c execute
Group

server

Syntax

execute [as_player/as_op/as_npc/as_server] [<Bukkit-command>] (silent)

Short Description

Executes an arbitrary server command as if the player, NPC, or server typed it in.

Description

Allows the execution of server commands through a Denizen script.
Commands can be executed as the server, as an npc, as an opped player, or as a player, as though it was typed by the respective source.

Note that you should generally avoid using 'as_op', which is only meant for very specific special cases. 'as_server' is usually a better option.

Note: do not include the slash at the start. A slash at the start will be interpreted equivalent to typing two slashes at the front in-game.

Note that...

drifting haven
#

as_op

winged flame
#

yeah I mentioned the execute command in my original post

#

will as_op work with the player

#

I mean

#

with a selected npc

drifting haven
#

why wouldn't it

winged flame
#

k Ill try

#

I hope the player just doesnt get spammed full with messages

#

Changing npc opts usually sends a message

drifting haven
#

o ya ur right

#

that might be a problem

#

erm

#

lemme test smt

winged flame
#

k

#

otherwise this should rlly be a feature imo. This currently looks horrendous lol

drifting haven
#

ya no never mind

#

i think ur only option is as_op

winged flame
#

Right so I did that, and with silent option I made it silent. Only issue is, the npcs falling distance still isn't 10

#

They also don't have gravity

#

Even when adjusting gravity to true, they dont fall

#

so I'm confused

#

And /npc gravity says gravity is enabled on those npcs

#

so idk

woven token
#

If their gravity doesn't work unrelatedly to Denizen, then that's probably a question for #1027028179908558918?

#

Or otherwise if you no longer need help -

dull auroraBOT
#
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.)

#

@winged flame