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!

Last updated