playMaker

Author Topic: [SOLVED] PlayMaker reset Global Object's Position and Rotation  (Read 2569 times)

Yoshi1234

  • Playmaker Newbie
  • *
  • Posts: 11
[SOLVED] PlayMaker reset Global Object's Position and Rotation
« on: December 22, 2015, 12:34:03 PM »
I want to do make game object from prefab by using Global Value because I want to make a weapon menu system which is when you tap a button , show you a weapon which you chose to see what is choosing.

Therefore, I set a weapon in Scene view where we can see form camera ( for example Position (190, 10,90) and Rotation(10,0,10) , then set it to prefabs, then set it to global game object.

The problem is when click a button, weapon appeared but on Posion(0, 0, 0) and Rotation(0,0,0).

How can I do make weapon appear on right place???

I hope you guys know how to do.

« Last Edit: December 22, 2015, 01:18:40 PM by Yoshi1234 »

KellyRay

  • Full Member
  • ***
  • Posts: 170
Re: PlayMaker reset Global Object's Position and Rotation
« Reply #1 on: December 22, 2015, 01:06:50 PM »
What action are you using to make the weapon appear?

KellyRay

  • Full Member
  • ***
  • Posts: 170
Re: PlayMaker reset Global Object's Position and Rotation
« Reply #2 on: December 22, 2015, 01:08:57 PM »
When I do things like this and need objects to appear in the scene where I want them, I generally have a empty game object as a target object to hold the position/rotation values. Then I use a combo of get position and set position when I spawn my game object of choice. I avoid global position variables for most things.

Yoshi1234

  • Playmaker Newbie
  • *
  • Posts: 11
Re: PlayMaker reset Global Object's Position and Rotation
« Reply #3 on: December 22, 2015, 01:18:14 PM »
Hi!!! Thanks for replying !!!
It worked!!!
Im really appreciate  you !!!

Thank you so much !!!

KellyRay

  • Full Member
  • ***
  • Posts: 170
Re: [SOLVED] PlayMaker reset Global Object's Position and Rotation
« Reply #4 on: December 22, 2015, 02:09:13 PM »
Awesome. Good luck!