# bool Unit::HasPath()

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

## Exact signature

```text
bool Unit::HasPath()
```

## Description

Returns false for an invalid Unit or when a unit state field differs from -1. Otherwise checks an implementation operation for hero units with a particular flag, or a unit field for nonhero units. The field meanings are not documented.

## Parameters and return type

**Return type:** `bool`

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

This signature takes no additional arguments.

## Read and share

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

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