/
State picker
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 |
, multiple selections available,
Related content
Set State By Name
Set State By Name
More like this
State Machine Behaviour
State Machine Behaviour
More like this
Randomize behaviour module property (AtomsUnreal)
Randomize behaviour module property (AtomsUnreal)
More like this
Random Selector
Random Selector
More like this
Attribute expression
Attribute expression
More like this
Set Blackboard Entry From Array
Set Blackboard Entry From Array
More like this
Copyright © 2017, Toolchefs LTD.