ApiBrain().SetJump
Sets the Group and Name of the Behavior to “Jump” to next.
Description
This function forces the invocation of a particular Behavior. This can be executed immediately in the script, or can be placed in a timed function for later execution.
Example Usage (Java)
boolean success = _core.ApiBrain().SetJump(“movies”, “likes2001”, 1.0f);
Example Usage (C#)
bool success = _core.ApiBrain().SetJump(“movies”, “likes2001”, 1.0f)
Parameters
string |
behaviorGroup |
The string representing the Group identifier of the Behavior. |
string |
behaviorName |
The string representing the name identifier of the Behavior. |
float |
probability |
The coefficient between 0.0 and 1.0 representing the probability that the jump will occur. |
Returns
The boolean success or failure of the operation.