Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 current connected states.

The change of state can triggered by a timer or a metadata.

...

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

...