# MMelee

## Overview

All the melee weapons will be managed by this component. Swords, axes, spears etc.

All the common properties of a weapon remain the same.

<figure><img src="/files/9jEFCqzmJGzrMk5hqUOS" alt=""><figcaption></figcaption></figure>

## Requirements

Melee weapons require a collider set as a trigger to interact with other objects and characters

<figure><img src="/files/kU9meOY9m2wYaVyQF8rd" alt=""><figcaption></figcaption></figure>

## Parameters

### Ignore Static Objects

Do not interact with objects where Set Static is true

### Prevent Duplicate Damage

Prevent damaging the same damageable twice in a single attack

### Melee Trigger \[Required]

Reference for the collider doing all the interactions &#x20;

### Ground Attacks: Ground Combo

Set the mode used on the Combo Manager to apply combos with the weapon while it is on the ground.

<figure><img src="/files/kudhEDWHpY6BBNAUDI5U" alt=""><figcaption></figcaption></figure>

### Ground Attack Abilities

If the ground combo is Empty, you can select which abilities of the Weapon Mode will be used to attack. These abilities will be picked randomly

### Riding Attack Abilities

While the Character is mounted, use a different set of Abilities.

### Use Camera Side

While mounting an animal, the attack on the weapon be played on the side the camera is pointing relative to the horse (E.g. the rider will swing the sword on the right of the horse if the camera is on the left side )

### Invert side

The Attack will be inverted while mounted.


---

# 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://malbersanimations.gitbook.io/animal-controller/main-components/weapon-manager/mmelee.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.
