playMaker

Author Topic: Set State for Mecanim sync on Photon  (Read 1446 times)

SeriousRPG

  • Playmaker Newbie
  • *
  • Posts: 45
Set State for Mecanim sync on Photon
« on: May 16, 2015, 07:53:36 PM »
Hi,
I am really struggling with sync of animator states. Here is what I have (and think my problem is)

I have FSM "Base layer" which has states that match my animator (ie. Walk, Run, and all transition steps Walk to Run, etc.) This is observed from PlaymakerAnimationSyncronization script

I have a FSM (Photon Network Sync FSM that has network'd variables, a Network view observing it, and a Photon view observing it)
 
I have a FSM "animation sync" which has following

if mine
   get fsm state (from Base Layer FSM)--> put in variable "syncd state"
   get fsm bool, etc. from Base Layer FSM --> put in variables "syncd xxx"
   set FSM string, bool, etc. in Photon Network Sync FSM
else
     get sync'd state (from Photon Network Sync FSM)
     get sync'd variables (from Photon Network Sync FSM)
     set fsm bool etc. (to Base Layer FSM)
     **I think I need to set fsm state in (Base Layer FSM)

My problem is there is no set FSM State action.  Is there another way or am I wrong altogether? My states are very complex so I don't really want to set a global transition to each state so I can send an event.

Help please!

Sandi