playMaker

Author Topic: Find Object on Load, help.  (Read 1625 times)

nabilfx

  • Full Member
  • ***
  • Posts: 186
Find Object on Load, help.
« on: October 23, 2015, 06:51:47 PM »
How can i tell playmaker object, when the game scene load, to look to the camera.
How i set a name to the camera, and tell the object to find it?

ManicMinerUK

  • Junior Playmaker
  • **
  • Posts: 51
Re: Find Object on Load, help.
« Reply #1 on: October 24, 2015, 11:54:13 PM »
if you want two object to reference each other across a scene (which is what I think you are asking) then it's fairly simple.

In object A, have a state with a Get Owner, that outputs to a global Game Object Variable with a sensible name

In object B in a different scene, you can reference that object by pointing whatever action you are using at the global Game Object variable.

nabilfx

  • Full Member
  • ***
  • Posts: 186
Re: Find Object on Load, help.
« Reply #2 on: October 25, 2015, 08:46:44 AM »
thank you!