> For the complete documentation index, see [llms.txt](https://hiveminddocs.gitbook.io/hivemind/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiveminddocs.gitbook.io/hivemind/code-systems/ultimate-building-system-framework-ubs/proxy-behaviour/trace-behaviour.md).

# Trace Behaviour

The `Trace Behaviour` class allows you to create custom logic for proxy placement. For example, the **First Person Forward Trace**, included in the plugin, uses a first-person camera and a set forward trace distance to determine where to place the proxy.\
\
Make sure to return the hit result as it is essential for the proxy to be placed correctly.

<figure><img src="/files/669P5n7ieaGy0Wr4SNr1" alt=""><figcaption><p>Example of a Trace Behavior Execute Function</p></figcaption></figure>

To create your own trace logic, simply subclass the `UBF_TraceBehaviour` class and override the `Execute` function. Any properties you define within this class will appear in the Buildable Definition, allowing you to modify them for each specific buildable.

## Functions

* `Execute()`\
  This is where you create your logic for how you want the placement trace to behave.
