> For the complete documentation index, see [llms.txt](https://riseclients-organization.gitbook.io/rise-6-scripting-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riseclients-organization.gitbook.io/rise-6-scripting-api/api-documentation/events/module-events/attack-event.md).

# Attack event

This page goes over the onAttack event.

### **`getTarget(): EntityLivingBase`**

Returns the target.
