> For the complete documentation index, see [llms.txt](https://levelalfaomega.gitbook.io/unity-mugen/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://levelalfaomega.gitbook.io/unity-mugen/unity-mugen/trigger-list/frontedgebodydist.md).

# FrontEdgeBodyDist

FrontEdgeBodyDist gives the distance between the front of the player (as determined by the front edge of his width bar) and the edge of the screen.

### Format:&#x20;

&#x20;          FrontEdgeBodyDist

### Arguments:&#x20;

&#x20;          none

### Return type:&#x20;

&#x20;          float

### Error conditions:&#x20;

&#x20;          none

### Example:

> ```
> trigger1 = FrontEdgeBodyDist < 30
>   Triggers if the front of the player is within 30 pixels
>   of the edge of the screen in front of him.
> ```
