The initial state is used to initialize (you can set the object into initial status).
It starts with the script’s launch.
Each state has its own list of action. To add an action, you should press button 6 (Action Browser).
State changes from one to another are done using the events.
While sending an event you can select the Event Target: Broadcast All (as finite state machines that are on), to GameObject itself, or to GameObject and all of its sub-objects.
AudioClip can be played by setting any GameObject where the audio source is present.
To switch the state when the sound is over, select the event in “Finished Event” field.
To create a script with the possibility to copy and paste, let’s create a variable with a link to the script:
While sending the event, you can set some Event Data:
Depending on the data, you can get it and set the needed values, e.g. in Vector3, we send start (X), end (Y), time (Z) values for Fade.
To get the sent data, use action “Get Event Vector3 Data”.
If you want to call one of the voice commands that are supported by Vyzn, fire the event "VYZN_VOICE" putting in the data the desired voice command.
See additional information about PlayMaker here - hutonggames.fogbugz.com