Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: MediaGiant on March 17, 2013, 09:32:12 AM

Title: Mouse picking from multiple objects [SOLVED]
Post by: MediaGiant on March 17, 2013, 09:32:12 AM
I'm using the Mouse Pick action to select between objects (dynamically created) in the world. Mouse Pick stores the game object selected in a global variable called currentObject. I then added a Bool Test to jump to a new state where I would like to perform a Set Material action on the selected object. The problem is when I click on Specify Game Object the global variable is not available. Perhaps this is the wrong approach so I'd welcome any ideas. 
Title: Re: Mouse picking from multiple objects
Post by: Lane on March 18, 2013, 05:08:02 AM
Try this (attached scene) Import into existing project with PlayMaker and open the scene.
Title: Re: Mouse picking from multiple objects
Post by: MediaGiant on March 18, 2013, 07:07:42 AM
Hi Lane, from looking at your example I noticed that you had selected that odd little button just under Specify Game Object that says Use Variable, DOH! I was expecting it to be in the drop down list automatically, but I'm glad that is solved. You're a champ. Thanks.