Custom Actions

A custom action can be used to send a message to a specific object to perform a certain task. Each custom action is unique to the object it was created for, whereas a global message can be sent to any object.

For example, a custom action could start a navigation component on an object when a timer expires on a different object. They are useful with components specifically, since components can't be referenced directly on an object, unlike an animation.

Here is an example of how to create a custom action and have it start a navigation component when a timer expires on a different object.

  1. Select the object with the the navigation component, and add a new Event on it.

  2. Select the Event dropdown, and click on the [+] button next to Custom Actions.

AddCustomAction

  1. Name the new Custom Action, trying to be as specific as possible to the task you want it to start.

NameCustomAction

  1. Set up the event that you want the custom action to activate, such as choosing and starting navigation on a Navigation component.

StartNavigationEventActions

  1. Now select the object in your scene that will send the custom action, such as when a countdown timer reaches zero.

  2. For its event action, select "Other Object" and select the object with the custom action on it. You will see the custom action as an option in the Interface column.

SelectCustomAction

  1. Select the custom action to send the message to the navigable object to start navigating.

Custom actions can be used to control a multitude of tasks on a single objects, and can send specific information with their parameters.