# Player Attacks

**Universal Monster** can even be used for all your **Player Attacks**. Setup your **Attacks Array** like you would for any AI character and then you can use the **Player Attack** function to trigger a specific attack in the **Attack Array**.

![The Player Attack function must execute on the server](https://2501426749-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbsB8IAdQC_jVeRoJ70%2F-MkmkFby4SMc15XE9VOL%2F-MkmkyONcVa5PoperWq1%2Fimage.png?alt=media\&token=4e19cfcd-0cee-434e-a2e3-a5c87ce4ba8e)

**Attack Index**: The index of the attack to be executed in the Attacks Array.

![Example of binding the Player Attacks to hotkeys](https://2501426749-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbsB8IAdQC_jVeRoJ70%2F-MkmkFby4SMc15XE9VOL%2F-MkmlSKNTb8tceA8Rerd%2Fimage.png?alt=media\&token=9e426f34-f8ae-4600-a9b9-bad12e19cdc0)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://slashin8r.gitbook.io/universal-monster/features/combat-system/player-attacks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
