# Walking Peds

The Walking Peds editor page manages walking ambient peds used mainly for casino waitresses. These NPCs can carry props such as a tray with champagne and move along a predefined route recorded in the editor.

<div data-full-width="false"><figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-8039b9d7b17f5f83e2af32f1b5ef19cf8ccdb529%2Fcapt_walkingpeds.png?alt=media" alt=""><figcaption></figcaption></figure></div>

### Editor Settings

<table data-full-width="false"><thead><tr><th>Setting</th><th>Type</th><th>Info</th></tr></thead><tbody><tr><td>Name</td><td>Text</td><td>Choose a display name for the walking ped</td></tr><tr><td>Ped model</td><td>Select/List + Text</td><td>Set ped model used for this walking ped profile</td></tr><tr><td>Animation enabled</td><td>Toggle</td><td>Enable/disable custom animation dict/name override</td></tr><tr><td>Animation dict</td><td>Text</td><td>Set animation dictionary when animation override is enabled</td></tr><tr><td>Animation name</td><td>Text</td><td>Set animation clip name when animation override is enabled</td></tr><tr><td>Prop enabled</td><td>Toggle</td><td>Enable/disable carried prop attachment</td></tr><tr><td>Prop model</td><td>Text</td><td>Set prop model attached to ped</td></tr><tr><td>Prop bone</td><td>Number/Text</td><td>Set ped bone id used for prop attach</td></tr><tr><td>Prop offset (X/Y/Z)</td><td>Vector3</td><td>Set prop local position offset</td></tr><tr><td>Prop rotation (X/Y/Z)</td><td>Vector3</td><td>Set prop local rotation offset</td></tr><tr><td>Record route</td><td>Action</td><td>Open route recording page for step capture</td></tr><tr><td>Proximity</td><td>Number</td><td>Set interaction/subscription distance in meters</td></tr><tr><td>Load only interiors</td><td>Toggle</td><td>Load this walking ped only while players are in interiors</td></tr><tr><td>Add walking ped</td><td>Action</td><td>Create a new walking ped at current player spawn coords/heading</td></tr><tr><td>Delete walking ped</td><td>Action</td><td>Delete selected walking ped</td></tr></tbody></table>

## Route recording

Walking ped paths are stored in `steps` and can be recorded directly in editor.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFicarM3Z9iXA9Tfz78vZ%2Fuploads%2FFTCFt2kLSXPqbVo3AWwy%2Fwp_recordroute.mp4?alt=media&token=2408ca0a-daa2-4f92-956e-556e5da183fd>" %}

## WalkingPedModels

Selectable walking ped models are defined in `rcore_casino/configs/walkingpeds.lua` in `WalkingPedModels`.

Only models from this list are available when cycling the ped model in editor.

```lua
WalkingPedModels = {"s_f_y_casino_01", "u_f_m_casinocash_01", "ADD YOUR_PED_MODEL_HERE"}
```
