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

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

## Exact signature

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

## Description

Resolves an optional Obj and required Unit, clears Unit tracking at [field] when set, then delegates the movement state machine to [field]; invalid Unit pushes false.

## 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 | `int` |
| 4 | `bool` |
| 5 | `int` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`bool Unit::Goto(point, int, int, bool, int)`](/imperivm/en/CKS/reference/api-5af9913a922428/)

## Read and share

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

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