Conditionals with Playmaker Data

v1.0

The Conditionals system is a powerful way to execute Action groups depending on other states and information. We have added a simple script to enable Playmaker FSM based Conditionals.

Playmaker Conditional Helper

Add PlaymakerConditionalHelper to your object β€” generally the same object with the fsm and ActionExecutor , though you can assign others.

Conditionals on State & Event

When adding Conditionals in a group, select the Custom Predicate option, and search for the IHavePlaymakerFsm interface.

The Method dropdown will let you select what to query, and you can populate the condition for success as well.

Conditionals Evaluating Playmaker Variables

You can also add a Conditional that checks against a Playmaker Variable.

Select Custom Value Check in the Conditionals panel.

The Variable name that you'd like to query should be set in the Value Name field, and then you need to populate the type of variable it is, and the condition to check against. If the type is a mismatch, the conditional returns false.

Last updated