# bool Unit::GotoAttack(Obj, int, bool, int)

[Family: Unit](/imperivm/en/CKS/familias/unit/)

## Exact signature

```text
bool Unit::GotoAttack(Obj, int, bool, int)
```

## Description

Prepares target tracking and delegates cooperative attack routing.

## Parameters and return type

**Return type:** `bool`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `Obj` |
| 2 | `int` |
| 3 | `bool` |
| 4 | `int` |

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-2e8ce34f88a7de.md)
- [JSON](/imperivm/CKS/api/entries/api-2e8ce34f88a7de?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
