Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: robmuzz on July 02, 2013, 09:47:12 AM

Title: How do get gameObject XYZ and save as a Global variable?[SOLVED]
Post by: robmuzz on July 02, 2013, 09:47:12 AM
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.
Title: Re: How do get gameObject XYZ and save as a Global variable?
Post by: jeanfabre 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
Title: Re: How do get gameObject XYZ and save as a Global variable?
Post by: robmuzz on July 04, 2013, 10:59:15 AM
Thank you!

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