Trace Behaviour
Last updated
Last updated
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.
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.
Execute()
This is where you create your logic for how you want the placement trace to behave.