State picker
The state picker module picks a random state connected to the current state and plays it. Users can also provide a set of states to use instead of the connected states.
The change of state can triggered by a timer or a metadata.
Attributes
Attributes | Type | Overridable | Description |
---|---|---|---|
active | bool | yes | the active state of this module |
seed | int | no | Random seed |
randomFactor | double | yes | Value between 0 and 1. The closer the value is to one the more probability each agent has to change state when the timer elapses. |
timer | vector2 | no | Vector used to assign a random timer. The timer value will be between its first and second values. |
useMetadata | bool | no | If on, a metadata is used to trigger the state change |
metadataName | string | no | The name of the bool metadata used for triggering the change of state. When the value of this metadata is on, the change of state will be triggered. |
backToPreviousState | bool | no | If on, the agent will go to the previous state after a given timer is elapsed |
previousStateTimer | vector2 | no | Vector used to assign a random timer. The timer value will be between its first and second values. |
useStates | bool | no | If on, this module will use the given states instead of trying to traverse the states connected to the current state |
states | int array | no | Input states |
Copyright © 2017, Toolchefs LTD.