Create and Edit Function Capacities
You can create function capacities for drivers or sensors in the Behavior Editor.
- From the Storytelling section of the action bar, click Behavior Editor .
- Click the Drivers or Sensors tab.
- In the Capacity type list, select Function.
-
Fill in the options:
Option Description Capacity Icon (optional)
Lets you select the capacity icon. The icon is visible in the Scenario panel.
Function name Defines the function capacity name in the JavaScript code. Note: The function name must exactly match the JavaScript function name you want to use in the capacity.Alias Defines the name used in the Scenario panel to display the capacity. Parameter Defines the type of parameter. Name Defines the parameter name. Restrictive type Defines the actor that you can use as a parameter. Notes:- This option is only available with object parameters.
- If nothing is selected, any actor can be used as a parameter.