Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ButcherZV on May 12, 2014, 05:48:30 PM

Title: Can't set GameObject in "Get Distance" Action[SOLVED]
Post by: ButcherZV 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).
Title: Re: Can't set GameObject in "Get Distance" Action
Post by: TrentSterling 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.