| Name | sentinel npc attacks |
| Event Lines | sentinel npc attacks |
| Triggers | when a Sentinel-powered NPC attacks a target. |
| Generated Examples | after sentinel npc attacks:
on sentinel npc attacks: |
| 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. |
| Switches | entity:<entity> to only fire the event if the target entity matches the given entity matcher. |
| Contexts | <context.entity> returns the entity that the NPC is attacking.
|
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Group | Depenizen |
| Requires | Depenizen, Sentinel |
| Source | https://github.com/DenizenScript/Depenizen/blob/master/src/main/java/com/denizenscript/depenizen/bukkit/events/sentinel/SentinelAttackScriptEvent.java#L16 |