playMaker

Author Topic: Photon Instanciate Store Object Issues  (Read 1337 times)

SeriousRPG

  • Playmaker Newbie
  • *
  • Posts: 45
Photon Instanciate Store Object Issues
« on: April 03, 2015, 07:13:31 PM »
Hi,
I'm having a strange problem that I can't narrow down. I have multiple scenes. When I load a scene I have a FSM that loads the character. On another GO I have a Playmaker Proxy Hash Table with a key "Vincent" and a GO that points to a prefab "PMVincent" in my resources directory of the project. I use Photon Network Instanciate and store the result in globals/Player. It runs fine and the player loads and the last thing I do is make him sit, using the Set Animator Boolean, and he sits.  When I try to make him stand (using the same boolean) I get an error that the Animator is not initialized and I notice the globals/Player references the prefab, not my scene object it just created.

Why is the Photon Network Instanciate Store Object referencing the Prefab (which doesnt have the animator initialized) when I think it should be referencing the scene object it just created?

I am using V 4.6 Unity and latest Playmaker and testing only with one character.

Thanks for the help,

Sandi