playMaker

Author Topic: How do get gameObject XYZ and save as a Global variable?[SOLVED]  (Read 2160 times)

robmuzz

  • Playmaker Newbie
  • *
  • Posts: 18
I know this is really simple, but I can't seem to get it to work...
How do get gameObject XYZ and save as a Global variable?

I have a global variable as a vector3 but I can't seem to get the XYZ from a object.

Thank you in advance.
« Last Edit: July 05, 2013, 03:43:47 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How do get gameObject XYZ and save as a Global variable?
« Reply #1 on: July 03, 2013, 02:14:34 AM »
Hi,

 Simply use the action "Get position" and reference your gameobjec in the "Gameobject field" and your gloval vector3 variable in "Vector"

Or the problem is elsewhere?

bye,

 Jean

robmuzz

  • Playmaker Newbie
  • *
  • Posts: 18
Re: How do get gameObject XYZ and save as a Global variable?
« Reply #2 on: July 04, 2013, 10:59:15 AM »
Thank you!

I'm not sure what I did before, but it's working now.