#(misquoth) on sentinel npc attacks event questions

13 messages · Page 1 of 1 (latest)

faint vessel
#

in the docs the only context is context.entity which is the entity attacked.

Is there any other available context, say the npc?

or a way that I can specify the particular npc in the event line?

hollow vectorBOT
#

(misquoth) on sentinel npc attacks event questions

hollow vectorBOT
#

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.

plain onyx
#

!e sentinel npc attacks

wheat charmBOT
# plain onyx !e sentinel npc attacks
Required Plugins or Platforms

Depenizen, Sentinel

Group

Depenizen

Event Lines

sentinel npc attacks

Switches

entity:<entity> to only fire the event if the target entity matches the given entity matcher.

Triggers

when a Sentinel-powered NPC attacks a target.

Has Player

When the attacked entity is a player. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Has NPC

Always.

Context

<context.entity> returns the entity that the NPC is attacking.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

plain onyx
#

Has NPC Always.

#

I'd guess the linked <npc> is the one attacking

austere ermineBOT
#
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.)

#

@faint vessel

faint vessel
#

how does one reference that? <context.npc> is empty

#

oh just straight up <npc>

#

thanks