Versions Compared

Key

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

Actions Random

Action group can be used to randomize agents actions.No matter simple transition mode or transition map mode

Tip
titleActive Agent Type

Please first active your agent type using Agent Manager, refer Agent Type Group and Agent Manager

First, we need to build the action group in transtion map. And also we need to transition map and insert all actionis actions into a group:

Image Removed

From action group, system can select one of the actions from the group. And make that selected action trigger action. The rule of select is randomization.

...

.

In blank area of transition map and right click the mouse button, hit add to create a state, name it as walk

Please notice this walk it not action name, it's the state name which can host a group of actions

Image Added

Add State

Image Added

Double Click The State

Image Added

Add actions into the state

Image AddedSelect all actions and create an action group

You can see the transition map has been updated like this:

Image Added
Randomize select one action from action group (cheer)

Trigger Once we setup action group correctly, we can trigger actions by action group name Image Removedwith logic sentence

Then, the engine will randomly select one of the actions from the action group and set it as the trigger action to agent.

For example in below image, engine will select one action (random one of walkA, walkB, walkC, walkD) from action group walk, and apply it to the agent randomly.

Image Added


Action Group Sentences

We have 2 different random modes:

  • play action randomly from group:?? priority ?: this will select  Selects one action in group and after playback and select other after playing finish. For example, if there are 5 actions, agents will play all of them randomly. It will change changes over and over again from time to time.
  • select and play one action from group:?? priority ?: This will select on  Selects one action in group randomly and always keep playing that the action without changing.


We can also change the playback speed rate for the actions in group:

  • change actions in group:?? playback speed ??: Set playback rate of all actions from in ?? action group