# /mqtarget

## Syntax

**/mqtarget** ***option***

## Description

Targets whatever is matched by one or more of the following *options*:

|                 |                                                                                               |
| --------------- | --------------------------------------------------------------------------------------------- |
| **clear**       | Clears your current target                                                                    |
| **mycorpse**    | Your own corpse (nearest)                                                                     |
| **myself**      | Target yourself                                                                               |
| *Anything Else* | Anything else is considered a [Spawn Search](/macroquest/general-information/spawn-search.md) |

## Examples

```
/mqtarget npc radius 100 zradius 50 alert 1
/mqtarget pc range 30 35 lfg
/mqtarget npc los radius 220
/mqtarget ${Spawn[alert 1]}
/mqtarget ${Spawn[noalert 1]}
```

## See Also

* [TLO:Target](/macroquest/data-types-and-top-level-objects/top-level-objects/tlo-target.md)
* [Spawn Search](/macroquest/general-information/spawn-search.md)
* [/doortarget](/macroquest/commands/slash-commands/doortarget.md)
* [/itemtarget](/macroquest/commands/slash-commands/itemtarget.md)
* [/alert](/macroquest/commands/slash-commands/alert.md)
* [DataType:spawn](/macroquest/data-types-and-top-level-objects/data-types/datatype-spawn.md)
* [DataType:target](/macroquest/data-types-and-top-level-objects/data-types/datatype-target.md)


---

# 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://macroquest.gitbook.io/macroquest/commands/slash-commands/mqtarget.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.
