playMaker

Author Topic: Can't set GameObject in "Get Distance" Action[SOLVED]  (Read 1526 times)

ButcherZV

  • Playmaker Newbie
  • *
  • Posts: 1
Can't set GameObject in "Get Distance" Action[SOLVED]
« on: May 12, 2014, 05:48:30 PM »
Everything used to work all right, but somehow now i can't set GameObject in Get Distance action or any other action that requires GameObject.
I need to set this GameObject parameter to Player, but when i drag Player object from Inspector i get menu with "Get Property", "Set Property" and "Send message".
What am I doing wrong now? Everything used to work wery well few hours ago (i had GameObject set to Player but somehow now i can't do this).
« Last Edit: January 15, 2018, 03:52:51 AM by jeanfabre »

TrentSterling

  • Junior Playmaker
  • **
  • Posts: 89
  • Someday I'll make games!
    • My Blog
Re: Can't set GameObject in "Get Distance" Action
« Reply #1 on: May 12, 2014, 06:20:19 PM »
Is this object a prefab? Prefabs can't have references to what's in the scene.

EDIT: You have to create a game object variable and assign it through find actions, or the inspector.
« Last Edit: May 12, 2014, 06:22:32 PM by TrentSterling »