playMaker

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

nabilfx

  • Full Member
  • ***
  • Posts: 186
    • View Profile
Find Object on Load, help.
« on: October 23, 2015, 03: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
    • View Profile
Re: Find Object on Load, help.
« Reply #1 on: October 24, 2015, 08: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
    • View Profile
Re: Find Object on Load, help.
« Reply #2 on: October 25, 2015, 05:46:44 AM »
thank you!