> For the complete documentation index, see [llms.txt](https://xeavin.gitbook.io/the-insurgents-handbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xeavin.gitbook.io/the-insurgents-handbook/scripts/vm-call-targets/dir-4e.md).

# Dir 4E

### Signature

```c
void dir_4e(float posX, float posY, float posZ); //id:0x004e
```

### Description

Does the same as the [Dir](/the-insurgents-handbook/scripts/vm-call-targets/dir.md) function, but with this one, the character turns towards a target position instead.

### Arguments

#### Position X

The position on the x-axis.

#### Position Y

The position on the y-axis.

#### Position Z

The position on the z-axis.

## Notes

{% hint style="warning" %}
Depending on an unknown type of the character, either position y or z will be set to `0`.
{% endhint %}
