# int Hero::TimePastLastAttack()

[Family: Hero](/imperivm/en/CKS/familias/hero/)

## Exact signature

```text
int Hero::TimePastLastAttack()
```

## Description

Returns the current game tick value minus the Hero's stored last-attack tick, or the current value when the Hero handle is invalid.

## Parameters and return type

**Return type:** `int`

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-664344e13e4c58.md)
- [JSON](/imperivm/CKS/api/entries/api-664344e13e4c58?lang=en)

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