playMaker

Author Topic: How to create an object with specified FSM variables?  (Read 1195 times)

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
How to create an object with specified FSM variables?
« on: March 03, 2015, 10:23:02 AM »
I'm wanting to create an instance of an object that has an FSM.  However, I'd like to configure the variables of that FSM at runtime before it begins to run.

Currently, I'm having the FSM wait at startup for a "continue" event.  So I create the object, wait for the next frame, use Set FSM X to set the variables, wait for the next frame, and then send the continue event.  This works, but it feels pretty clunky.

I'd love to have something akin to how Run FSM works, where it allows me to specify the variables before the FSM actually starts.

Does anyone know if there's a way to do this?

Thanks!
« Last Edit: March 03, 2015, 11:34:58 AM by Tricky_Widget »