/
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

AttributesTypeOverridableDescription
activeboolyesthe active state of this module
seedintnoRandom seed
randomFactordoubleyesValue 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

noVector used to assign a random timer. The timer value will be between its first and second values. 
useMetadataboolnoIf on, a metadata is used to trigger the state change
metadataNamestringnoThe 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.
backToPreviousStateboolnoIf on, the agent will go to the previous state after a given timer is elapsed
previousStateTimervector2noVector used to assign a random timer. The timer value will be between its first and second values. 
useStatesboolnoIf on, this module will use the given states instead of trying to traverse the states connected to the current state
statesint arraynoInput states



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
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.