Executing Actions
v1.0
Executing Actions from Playmaker Graph
You can execute Actions from the Playmaker state machine graph directly using the Call Method actions, or the new Juicy Actions Execute action.
Or, use the ActionOnEvent components to execute based on Playmaker state changes and events.
Call Method Triggers Action Runner
This first option uses the Call Method Playmaker action to call the Execute() method on an ActionRunner component.
Add an ActionRunner component to your object. Generally it will be the same object the graph is on, but the graph can call Execute() on any ActionRunner component.
Unless you want the Actions to start automatically, toggle off Auto Start and optionally Auto Restart, on the ActionRunner Inspector.

Add a Call Method action to the graph State. Populate the Behaviour with the ActionRunner component, and then choose the Execute() method. Any Actions on the ActionRunner will be executed when this state is entered!

Juicy Actions Execute
Open the Action Browser in the State panel, and add Juicy Actions Execute to your actions list.
Add a Component to the field. By default, the first ActionExecutor found will be executed. If your component has multiple ActionExecutor objects, set the fieldName for the one you want to call.

Action On Event Components
The integration brings new Action On Event components which have built-in ActionExecutors. Each of these allows you to choose a Playmaker FSM, and set the event or state to trigger upon.
Action on Playmaker Event
Executes the list of Actions whenever the events you select are triggered. You can add as many events as you'd like, from those exposed on the Playmaker graph.

Action on Playmaker State Enter
Executes the list of Actions whenever the states you populate are entered. You can add as many states as you'd like, from those on the Playmaker graph.

Action on Playmaker State Exit
Executes the list of Actions whenever the states you populate are exited. You can add as many states as you'd like, from those on the Playmaker graph.
Last updated