> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/getz_12d.md).

# npc.getz\_12d

```lua
npc.getz_12d(actor)
```

|                         |                                                                           |
| ----------------------- | ------------------------------------------------------------------------- |
| id                      | `0x012D`                                                                  |
| arguments               | 1: Int                                                                    |
| result                  | float: goes to the very next call, or to `npc.lua(npc.getz_12d(...), fn)` |
| in NPC Kit              | yes                                                                       |
| measured from a kit NPC | returns                                                                   |
| vanilla scripts         | 600 calls in 124 of 1114 scripts                                          |

## What it does

Gives the z position of another actor. A result.

## Arguments

### `actor` (Int)

`-1` the character the player controls (276 of 316 vanilla calls), or another actor.

## Result

The z, a float.

## Timing

Returns at once.

## Used with

* [getx\_12b](https://fehdead.gitbook.io/npc-kit/vm-reference/calls/getx_12b.md).

## Example

```lua
npc.lua(npc.getz_12d(-1), function(handle, z)
    say(handle, z > 70 and "You came from the north." or "You came from the south.")
end);
```
