Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: joduffy on December 13, 2013, 09:56:54 PM

Title: Variable Object
Post by: joduffy on December 13, 2013, 09:56:54 PM
Hi I am trying to learn how to use the photon demo.

I was look at this FSM:

https://hutonggames.fogbugz.com/default.asp?W875

But I cannot seem to edit an Object variable. I noticed there is a variable called Camera Script of object type ThirdPersonCamera which point to the FSM Photon Player.

Yet when I create my own object I cannot point it to my player - cannot drag and drop or set its value.
Title: Re: Variable Object
Post by: joduffy on December 13, 2013, 09:59:02 PM
Turns out you just drag and drop the desired script from the inspector into the playmaker editor variables tab.

So in this case I dragged and dropped the Third person Camera script into the variable tab.

I still dont understand why I could not set the value of a created object variable in playmaker though.
Title: Re: Variable Object
Post by: jeanfabre on December 14, 2013, 01:08:47 PM
Hi,

 Did you properly assigned the fsmObject to be of the right type? always double check this, it's likely the reason.

bye,

 Jean
Title: Re: Variable Object
Post by: joduffy on December 14, 2013, 09:51:17 PM
Hi Jean,

Yeah. I had the correct fsm setup.

I set it to the ThirdPersonContoller and tried to drag and drop the script from the inspector into it.

Its not a big deal as I have a work around. Just thought it was strange.
Title: Re: Variable Object
Post by: jeanfabre on December 15, 2013, 05:36:23 AM
Hi,

 some screencast would help, cause maybe we are not actual picturing the same thing.

bye,

 Jean