Probability Selector

Probability Selector

Executes a child node based on its chance to be selected. If the current child node returns Failure, a new child node will be picked.

Success: When the current child node returns Success

Failure: When the current child node returns Failure, or no child is picked if the failure chance is used

Running: When the selected child node returns Running.

 


Attributes

Attributes

Type

Description

Attributes

Type

Description

lockAgent

bool

If on, ensures no data on the agent is written simultaneously by nodes that have this option active.

weights

array

Children probabilities

failChance

double

Failure chance used as probability to return a failure status

seed

int

The random generator seed

useAnimatedSeed

bool

Use the simulation to offset the random generator seed

useAgentIdAsSeed

bool

Use the agent id to offset the random generator seed

Copyright © 2017, Toolchefs LTD.