playMaker

Author Topic: Variable Object  (Read 1428 times)

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Variable Object
« on: December 13, 2013, 07: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.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Re: Variable Object
« Reply #1 on: December 13, 2013, 07: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.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14698
  • Official Playmaker Support
    • View Profile
Re: Variable Object
« Reply #2 on: December 14, 2013, 11:08:47 AM »
Hi,

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

bye,

 Jean

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • View Profile
    • Online Playmaker Courses
Re: Variable Object
« Reply #3 on: December 14, 2013, 07: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.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14698
  • Official Playmaker Support
    • View Profile
Re: Variable Object
« Reply #4 on: December 15, 2013, 03:36:23 AM »
Hi,

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

bye,

 Jean